function EntityBase::save
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::save()
- 8.9.x core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::save()
- 11.x core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::save()
Overrides EntityInterface::save
2 calls to EntityBase::save()
- ConfigEntityBase::save in core/
lib/ Drupal/ Core/ Config/ Entity/ ConfigEntityBase.php - EntityTestMulChanged::save in core/
modules/ system/ tests/ modules/ entity_test/ src/ Entity/ EntityTestMulChanged.php
3 methods override EntityBase::save()
- ConfigEntityBase::save in core/
lib/ Drupal/ Core/ Config/ Entity/ ConfigEntityBase.php - ContentModerationState::save in core/
modules/ content_moderation/ src/ Entity/ ContentModerationState.php - Saves an entity permanently.
- EntityTestMulChanged::save in core/
modules/ system/ tests/ modules/ entity_test/ src/ Entity/ EntityTestMulChanged.php
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityBase.php, line 352
Class
- EntityBase
- Defines a base entity class.
Namespace
Drupal\Core\EntityCode
public function save() {
$storage = $this->entityTypeManager()
->getStorage($this->entityTypeId);
return $storage->save($this);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.