public function EntityPreSaveEvent::getEntity in YAML Content 8
Same name and namespace in other branches
- 8.2 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\EventCode
public function getEntity() {
return $this->entity;
}