protected function StyleDiscovery::getYamlDiscovery in Paragraphs Collection 8
Gets the YAML discovery.
Return value
\Drupal\Core\Discovery\YamlDiscovery The YAML discovery.
1 call to StyleDiscovery::getYamlDiscovery()
- StyleDiscovery::getStyles in src/
StyleDiscovery.php - Returns associative array of name and definition of style.
File
- 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_collectionCode
protected function getYamlDiscovery() {
return new YamlDiscovery('paragraphs.style', $this->moduleHandler
->getModuleDirectories() + $this
->getSortedThemeDirectories());
}