You are here

public function ScheduledTransition::getWorkflow in Scheduled Transitions 2.x

Same name and namespace in other branches
  1. 8 src/Entity/ScheduledTransition.php \Drupal\scheduled_transitions\Entity\ScheduledTransition::getWorkflow()

Get the workflow for this scheduled transition.

Return value

\Drupal\workflows\WorkflowInterface|null The workflow.

Overrides ScheduledTransitionInterface::getWorkflow

File

src/Entity/ScheduledTransition.php, line 213

Class

ScheduledTransition
Scheduled Transition entity.

Namespace

Drupal\scheduled_transitions\Entity

Code

public function getWorkflow() : ?WorkflowInterface {
  return $this
    ->get('workflow')->entity;
}