Same name and namespace in other branches
  1. 8.9.x core/modules/workflows/src/Entity/Workflow.php \Drupal\workflows\Entity\Workflow::getTypePlugin()
  2. 9 core/modules/workflows/src/Entity/Workflow.php \Drupal\workflows\Entity\Workflow::getTypePlugin()

Gets the workflow type plugin.

Return value

\Drupal\workflows\WorkflowTypeInterface The workflow type plugin.

Overrides WorkflowInterface::getTypePlugin

3 calls to Workflow::getTypePlugin()
Workflow::onDependencyRemoval in core/modules/workflows/src/Entity/Workflow.php
Informs the entity that entities it depends on will be deleted.
Workflow::preSave in core/modules/workflows/src/Entity/Workflow.php
Acts on an entity before the presave hook is invoked.
Workflow::status in core/modules/workflows/src/Entity/Workflow.php
Returns whether the configuration entity is enabled.

File

core/modules/workflows/src/Entity/Workflow.php, line 120

Class

Workflow
Defines the workflow entity.

Namespace

Drupal\workflows\Entity

Code

public function getTypePlugin() {
  return $this
    ->getPluginCollection()
    ->get($this->type);
}