You are here

public function EntityBase::save in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::save()
  2. 9 core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::save()
2 methods override EntityBase::save()
ConfigEntityBase::save in core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php
Saves an entity permanently.
EntityTestMulChanged::save in core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMulChanged.php
Saves an entity permanently.

File

core/lib/Drupal/Core/Entity/EntityBase.php, line 337

Class

EntityBase
Defines a base entity class.

Namespace

Drupal\Core\Entity

Code

public function save() {
  $storage = $this
    ->entityTypeManager()
    ->getStorage($this->entityTypeId);
  return $storage
    ->save($this);
}