public function GridLayoutDiscovery::getLayout in Paragraphs Collection 8
Get layout by layout name.
Parameters
string $layout: The layout name.
Return value
array The layout configuration.
Overrides GridLayoutDiscoveryInterface::getLayout
File
- src/
GridLayoutDiscovery.php, line 129
Class
- GridLayoutDiscovery
- Provides common helper methods for style discovery.
Namespace
Drupal\paragraphs_collectionCode
public function getLayout($layout) {
$layouts = $this
->getGridLayouts();
if (isset($layouts[$layout])) {
return $layouts[$layout];
}
return [];
}