protected function Workflow::getPluginCollection in Drupal 9
Same name and namespace in other branches
- 8 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 - Gets the plugin collections used by this object.
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;
}