public function GridLayoutDiscovery::getLibraries

Get a list of library names for the given layout.

Parameters

string $layout: The layout name.

Return value

string[] The library names list.

Overrides GridLayoutDiscoveryInterface::getLibraries

File

paragraphs_collection/src/GridLayoutDiscovery.php, line 73

Class

GridLayoutDiscovery
Provides common helper methods for style discovery.

Namespace

Drupal\paragraphs_collection

Code

public function getLibraries($layout) {
  $collection = $this
    ->getGridLayouts();
  return isset($collection[$layout]['libraries']) ? $collection[$layout]['libraries'] : [];
}