You are here

public function DefaultsSectionStorage::save in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/layout_builder/src/Plugin/SectionStorage/DefaultsSectionStorage.php \Drupal\layout_builder\Plugin\SectionStorage\DefaultsSectionStorage::save()
  2. 10 core/modules/layout_builder/src/Plugin/SectionStorage/DefaultsSectionStorage.php \Drupal\layout_builder\Plugin\SectionStorage\DefaultsSectionStorage::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/DefaultsSectionStorage.php, line 342

Class

DefaultsSectionStorage
Defines the 'defaults' section storage type.

Namespace

Drupal\layout_builder\Plugin\SectionStorage

Code

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