You are here

public function ContentModerationStateChangedEvent::getModeratedEntity in Workbench Email 2.x

Same name and namespace in other branches
  1. 8 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;
}