You are here

public function Library::save in Layout builder library 8

Saves the sections.

Return value

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

Overrides SectionStorageInterface::save

File

src/Plugin/SectionStorage/Library.php, line 247

Class

Library
Defines a class for library based layout storage.

Namespace

Drupal\layout_library\Plugin\SectionStorage

Code

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