You are here

public function ScheduledTransition::getWorkflow in Scheduled Transitions 8

Same name and namespace in other branches
  1. 2.x 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 162

Class

ScheduledTransition
Scheduled Transition entity.

Namespace

Drupal\scheduled_transitions\Entity

Code

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