You are here

public function OverridesSectionStorage::save in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php \Drupal\layout_builder\Plugin\SectionStorage\OverridesSectionStorage::save()

Saves the sections.

Return value

int SAVED_NEW or SAVED_UPDATED is returned depending on the operation performed.

Overrides SectionStorageInterface::save

File

core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php, line 332

Class

OverridesSectionStorage
Defines the 'overrides' section storage type.

Namespace

Drupal\layout_builder\Plugin\SectionStorage

Code

public function save() {
  return $this
    ->getEntity()
    ->save();
}