public function StyleDiscoveryInterface::getStyle

Get style by name.

Parameters

string $style: The style name.

string|null $default: (optional) The default style if the specified style does not exist.

Return value

array|null The style configuration array of the given style or NULL.

1 method overrides StyleDiscoveryInterface::getStyle()
StyleDiscovery::getStyle in paragraphs_collection/src/StyleDiscovery.php
Get style by name.

File

paragraphs_collection/src/StyleDiscoveryInterface.php, line 74

Class

StyleDiscoveryInterface
Provides discovery for a YAML style files in specific directories.

Namespace

Drupal\paragraphs_collection

Code

public function getStyle($style, $default = NULL);