You are here

public function EntityPreSaveEvent::getEntity in YAML Content 8.2

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

Gets the entity that is populated and prepared for saving.

Return value

\Drupal\Core\Entity\EntityInterface The created entity prepared to be saved.

File

src/Event/EntityPreSaveEvent.php, line 50

Class

EntityPreSaveEvent
Wraps a yaml content entity pre-save event for event listeners.

Namespace

Drupal\yaml_content\Event

Code

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