public function ConfigEntityStorageDecorator::save in Devel 4.x
Same name and namespace in other branches
- 8.3 webprofiler/src/Entity/Decorators/Config/ConfigEntityStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ConfigEntityStorageDecorator::save()
- 8 webprofiler/src/Entity/Decorators/Config/ConfigEntityStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ConfigEntityStorageDecorator::save()
- 8.2 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\ConfigCode
public function save(EntityInterface $entity) {
return $this
->getOriginalObject()
->save($entity);
}