You are here

public function EntityPostSaveEvent::getEntity in YAML Content 8.2

Same name and namespace in other branches
  1. 8 src/Event/EntityPostSaveEvent.php \Drupal\yaml_content\Event\EntityPostSaveEvent::getEntity()

Gets the entity that was imported and saved.

Return value

\Drupal\Core\Entity\EntityInterface The saved entity object.

File

src/Event/EntityPostSaveEvent.php, line 50

Class

EntityPostSaveEvent
Wraps a yaml content entity post-save event for event listeners.

Namespace

Drupal\yaml_content\Event

Code

public function getEntity() {
  return $this->entity;
}