You are here

public function ScheduledTransition::getEntity in Scheduled Transitions 8

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

Get the entity this scheduled transition is for.

Return value

\Drupal\Core\Entity\EntityInterface|null The entity.

Overrides ScheduledTransitionInterface::getEntity

2 calls to ScheduledTransition::getEntity()
ScheduledTransition::getCacheTagsToInvalidate in src/Entity/ScheduledTransition.php
Returns the cache tags that should be used to invalidate caches.
ScheduledTransition::invalidateTagsOnSave in src/Entity/ScheduledTransition.php
Invalidates an entity's cache tags upon save.

File

src/Entity/ScheduledTransition.php, line 134

Class

ScheduledTransition
Scheduled Transition entity.

Namespace

Drupal\scheduled_transitions\Entity

Code

public function getEntity() : ?EntityInterface {
  return $this
    ->get('entity')->entity;
}