protected function GridLayoutDiscovery::getYamlDiscovery

Gets the intitiated YAML discovery.

Return value

\Drupal\Core\Discovery\YamlDiscovery The YAML discovery object.

File

paragraphs_collection/src/GridLayoutDiscovery.php, line 145

Class

GridLayoutDiscovery
Provides common helper methods for style discovery.

Namespace

Drupal\paragraphs_collection

Code

protected function getYamlDiscovery() {
  return new YamlDiscovery('paragraphs.grid_layouts', $this->moduleHandler
    ->getModuleDirectories() + $this->themeHandler
    ->getThemeDirectories());
}