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