public function ConfigEntityBase::save in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php \Drupal\Core\Config\Entity\ConfigEntityBase::save()
Saves an entity permanently.
When saving existing entities, the entity is assumed to be complete, partial updates of entities are not supported.
Return value
int Either SAVED_NEW or SAVED_UPDATED, depending on the operation performed.
Throws
\Drupal\Core\Entity\EntityStorageException In case of failures an exception is thrown.
Overrides Entity::save
2 calls to ConfigEntityBase::save()
- ImageStyle::deleteImageEffect in core/
modules/ image/ src/ Entity/ ImageStyle.php - Deletes an image effect from this style.
- TaxonomyMenu::save in modules/
taxonomy_menu/ src/ Entity/ TaxonomyMenu.php - Saves an entity permanently.
1 method overrides ConfigEntityBase::save()
- TaxonomyMenu::save in modules/
taxonomy_menu/ src/ Entity/ TaxonomyMenu.php - Saves an entity permanently.
File
- core/
lib/ Drupal/ Core/ Config/ Entity/ ConfigEntityBase.php, line 611 - Contains \Drupal\Core\Config\Entity\ConfigEntityBase.
Class
- ConfigEntityBase
- Defines a base configuration entity class.
Namespace
Drupal\Core\Config\EntityCode
public function save() {
$return = parent::save();
$this->trustedData = FALSE;
return $return;
}