public function StyleDiscoveryInterface::getStyle in Paragraphs Collection 8
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 src/
StyleDiscovery.php - Get style by name.
File
- src/
StyleDiscoveryInterface.php, line 74
Class
- StyleDiscoveryInterface
- Provides discovery for a YAML style files in specific directories.
Namespace
Drupal\paragraphs_collectionCode
public function getStyle($style, $default = NULL);