8.3.x ConfigEntityBase.php public ConfigEntityBase::save()
8.0.x ConfigEntityBase.php public ConfigEntityBase::save()
8.1.x ConfigEntityBase.php public ConfigEntityBase::save()
8.2.x ConfigEntityBase.php public ConfigEntityBase::save()
8.4.x ConfigEntityBase.php public 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

1 call to ConfigEntityBase::save()
ImageStyle::deleteImageEffect in core/modules/image/src/Entity/ImageStyle.php
Deletes an image effect from this style.

File

core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php, line 636

Class

ConfigEntityBase
Defines a base configuration entity class.

Namespace

Drupal\Core\Config\Entity

Code

public function save() {
  $return = parent::save();
  $this->trustedData = FALSE;
  return $return;
}