function Workflow::getPluginCollection
Same name in other branches
- 9 core/modules/workflows/src/Entity/Workflow.php \Drupal\workflows\Entity\Workflow::getPluginCollection()
- 10 core/modules/workflows/src/Entity/Workflow.php \Drupal\workflows\Entity\Workflow::getPluginCollection()
- 11.x core/modules/workflows/src/Entity/Workflow.php \Drupal\workflows\Entity\Workflow::getPluginCollection()
Encapsulates the creation of the workflow's plugin collection.
Return value
\Drupal\Core\Plugin\DefaultSingleLazyPluginCollection The workflow's plugin collection.
1 call to Workflow::getPluginCollection()
- Workflow::getPluginCollections in core/
modules/ workflows/ src/ Entity/ Workflow.php
File
-
core/
modules/ workflows/ src/ Entity/ Workflow.php, line 137
Class
- Workflow
- Defines the workflow entity.
Namespace
Drupal\workflows\EntityCode
protected function getPluginCollection() {
if (!$this->pluginCollection && $this->type) {
$this->pluginCollection = new DefaultSingleLazyPluginCollection(\Drupal::service('plugin.manager.workflows.type'), $this->type, $this->type_settings);
}
return $this->pluginCollection;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.