protected function StyleDiscovery::getYamlGroupDiscovery

Gets the YAML group discovery.

Return value

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

File

paragraphs_collection/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());
}