You are here

public function ScheduledTransition::getEntityRevisionLanguage in Scheduled Transitions 8

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

Get the language of the revision this scheduled transition is for.

Return value

string|null The revision language code.

Overrides ScheduledTransitionInterface::getEntityRevisionLanguage

File

src/Entity/ScheduledTransition.php, line 148

Class

ScheduledTransition
Scheduled Transition entity.

Namespace

Drupal\scheduled_transitions\Entity

Code

public function getEntityRevisionLanguage() : ?string {
  return $this
    ->get('entity_revision_langcode')->value;
}