public function StyleDiscovery::getLibraries in Paragraphs Collection 8
Gets libraries for a specific style or empty list if style is not found.
Parameters
$style: The name of the style.
Return value
array The names of the libraries, or empty list if not found.
Overrides StyleDiscoveryInterface::getLibraries
File
- src/
StyleDiscovery.php, line 242
Class
- StyleDiscovery
- Provides common helper methods for style discovery. @todo Create documentation for style discovery https://www.drupal.org/node/2837995
Namespace
Drupal\paragraphs_collectionCode
public function getLibraries($style) {
$collection = $this
->getStyles();
return $collection[$style]['libraries'];
}