You are here

public function GridLayoutDiscovery::getLibraries in Paragraphs Collection 8

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

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'] : [];
}