You are here

public function ScheduledTransition::getState in Scheduled Transitions 8

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

Get the new state for this scheduled transition.

Return value

string|null The state ID.

Overrides ScheduledTransitionInterface::getState

File

src/Entity/ScheduledTransition.php, line 169

Class

ScheduledTransition
Scheduled Transition entity.

Namespace

Drupal\scheduled_transitions\Entity

Code

public function getState() : string {
  return $this
    ->get('moderation_state')->value;
}