protected function GridLayoutDiscovery::getYamlDiscovery in Paragraphs Collection 8
Gets the intitiated YAML discovery.
Return value
\Drupal\Core\Discovery\YamlDiscovery The YAML discovery object.
1 call to GridLayoutDiscovery::getYamlDiscovery()
- GridLayoutDiscovery::getGridLayouts in src/
GridLayoutDiscovery.php - Get defined grid layouts.
File
- src/
GridLayoutDiscovery.php, line 145
Class
- GridLayoutDiscovery
- Provides common helper methods for style discovery.
Namespace
Drupal\paragraphs_collectionCode
protected function getYamlDiscovery() {
return new YamlDiscovery('paragraphs.grid_layouts', $this->moduleHandler
->getModuleDirectories() + $this->themeHandler
->getThemeDirectories());
}