protected function Workflow::getPluginCollection in Drupal 10
Same name and namespace in other branches
- 8 core/modules/workflows/src/Entity/Workflow.php \Drupal\workflows\Entity\Workflow::getPluginCollection()
- 9 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.
2 calls to Workflow::getPluginCollection()
- Workflow::getPluginCollections in core/
modules/ workflows/ src/ Entity/ Workflow.php - Gets the plugin collections used by this object.
- Workflow::getTypePlugin in core/
modules/ workflows/ src/ Entity/ Workflow.php - Gets the workflow type plugin.
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;
}