public function StyleDiscovery::getLibraries

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

paragraphs_collection/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_collection

Code

public function getLibraries($style) {
  $collection = $this
    ->getStyles();
  return $collection[$style]['libraries'];
}