protected function StyleDiscovery::getYamlDiscovery

Gets the YAML discovery.

Return value

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

File

paragraphs_collection/src/StyleDiscovery.php, line 206

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 getYamlDiscovery() {
  return new YamlDiscovery('paragraphs.style', $this->moduleHandler
    ->getModuleDirectories() + $this
    ->getSortedThemeDirectories());
}