protected function LogCategoryManager::getDiscovery in Commerce Core 8.2
Gets the plugin discovery.
Return value
\Drupal\Component\Plugin\Discovery\DiscoveryInterface
Overrides DefaultPluginManager::getDiscovery
File
- modules/
log/ src/ LogCategoryManager.php, line 48
Class
- LogCategoryManager
- Manages discovery and instantiation of commerce_log_category plugins.
Namespace
Drupal\commerce_logCode
protected function getDiscovery() {
if (!isset($this->discovery)) {
$this->discovery = new YamlDiscovery('commerce_log_categories', $this->moduleHandler
->getModuleDirectories());
$this->discovery
->addTranslatableProperty('label', 'label_context');
$this->discovery = new ContainerDerivativeDiscoveryDecorator($this->discovery);
}
return $this->discovery;
}