You are here

public function ContentModerationStateChangedEvent::getModeratedEntity in Workbench Email 8

Same name and namespace in other branches
  1. 2.x src/EventSubscriber/ContentModerationStateChangedEvent.php \Drupal\workbench_email\EventSubscriber\ContentModerationStateChangedEvent::getModeratedEntity()

Get the entity that is being moderated.

Return value

\Drupal\Core\Entity\ContentEntityInterface The entity that is being moderated.

File

src/EventSubscriber/ContentModerationStateChangedEvent.php, line 68

Class

ContentModerationStateChangedEvent
Defines content moderation state change events.

Namespace

Drupal\workbench_email\EventSubscriber

Code

public function getModeratedEntity() {
  return $this->moderatedEntity;
}