public function DashboardSectionStorage::save in Dashboards with Layout Builder 2.0.x
Same name and namespace in other branches
- 8 src/Plugin/SectionStorage/DashboardSectionStorage.php \Drupal\dashboards\Plugin\SectionStorage\DashboardSectionStorage::save()
Saves the sections.
Return value
int SAVED_NEW or SAVED_UPDATED is returned depending on the operation performed.
Overrides SectionStorageInterface::save
1 method overrides DashboardSectionStorage::save()
- UserDashboardSectionStorage::save in src/
Plugin/ SectionStorage/ UserDashboardSectionStorage.php - Saves the sections.
File
- src/
Plugin/ SectionStorage/ DashboardSectionStorage.php, line 241
Class
- DashboardSectionStorage
- Dashboard section storage.
Namespace
Drupal\dashboards\Plugin\SectionStorageCode
public function save() {
return $this
->getDashboard()
->save();
}