function Workflow::getTypePlugin

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

Overrides WorkflowInterface::getTypePlugin

1 call to Workflow::getTypePlugin()
Workflow::preSave in core/modules/workflows/src/Entity/Workflow.php
Acts on an entity before the presave hook is invoked.

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);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.