You are here

public function ConfigEntityStorageDecorator::save in Devel 8.2

Same name and namespace in other branches
  1. 8.3 webprofiler/src/Entity/Decorators/Config/ConfigEntityStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ConfigEntityStorageDecorator::save()
  2. 8 webprofiler/src/Entity/Decorators/Config/ConfigEntityStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ConfigEntityStorageDecorator::save()
  3. 4.x webprofiler/src/Entity/Decorators/Config/ConfigEntityStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ConfigEntityStorageDecorator::save()

Saves the entity permanently.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity to save.

Return value

SAVED_NEW or SAVED_UPDATED is returned depending on the operation performed.

Throws

\Drupal\Core\Entity\EntityStorageException In case of failures, an exception is thrown.

Overrides EntityStorageInterface::save

File

webprofiler/src/Entity/Decorators/Config/ConfigEntityStorageDecorator.php, line 107

Class

ConfigEntityStorageDecorator
Class ConfigEntityStorageDecorator

Namespace

Drupal\webprofiler\Entity\Decorators\Config

Code

public function save(EntityInterface $entity) {
  return $this
    ->getOriginalObject()
    ->save($entity);
}