You are here

protected function StyleDiscovery::getYamlGroupDiscovery in Paragraphs Collection 8

Gets the YAML group discovery.

Return value

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

1 call to StyleDiscovery::getYamlGroupDiscovery()
StyleDiscovery::getStyleGroups in src/StyleDiscovery.php
Gets style groups.

File

src/StyleDiscovery.php, line 324

Class

StyleDiscovery
Provides common helper methods for style discovery. @todo Create documentation for style discovery https://www.drupal.org/node/2837995

Namespace

Drupal\paragraphs_collection

Code

protected function getYamlGroupDiscovery() {
  return new YamlDiscovery('paragraphs.style_group', $this->moduleHandler
    ->getModuleDirectories() + $this
    ->getSortedThemeDirectories());
}