function ComponentPluginManager::getDiscovery
Same name in this branch
- 10 core/lib/Drupal/Core/Theme/ComponentPluginManager.php \Drupal\Core\Theme\ComponentPluginManager::getDiscovery()
Same name in other branches
- 11.x core/modules/sdc/src/ComponentPluginManager.php \Drupal\sdc\ComponentPluginManager::getDiscovery()
- 11.x core/lib/Drupal/Core/Theme/ComponentPluginManager.php \Drupal\Core\Theme\ComponentPluginManager::getDiscovery()
Overrides DefaultPluginManager::getDiscovery
File
-
core/
modules/ sdc/ src/ ComponentPluginManager.php, line 227
Class
- ComponentPluginManager
- Defines a plugin manager to deal with sdc.
Namespace
Drupal\sdcCode
protected function getDiscovery() : DirectoryWithMetadataPluginDiscovery {
if (!isset($this->discovery)) {
$directories = $this->getScanDirectories();
$this->discovery = new DirectoryWithMetadataPluginDiscovery($directories, 'sdc', $this->fileSystem);
}
return $this->discovery;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.