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