protected function WorkflowGroupManager::getDiscovery in State Machine 8
Gets the plugin discovery.
Return value
\Drupal\Component\Plugin\Discovery\DiscoveryInterface
Overrides DefaultPluginManager::getDiscovery
File
- src/
WorkflowGroupManager.php, line 53
Class
- WorkflowGroupManager
- Manages discovery and instantiation of workflow_group plugins.
Namespace
Drupal\state_machineCode
protected function getDiscovery() {
if (!isset($this->discovery)) {
$this->discovery = new YamlDiscovery('workflow_groups', $this->moduleHandler
->getModuleDirectories());
$this->discovery
->addTranslatableProperty('label', 'label_context');
$this->discovery = new ContainerDerivativeDiscoveryDecorator($this->discovery);
}
return $this->discovery;
}