function SectionStorageBase::setSectionList
Sets the section list on the storage.
@internal As of Drupal 8.7.0, this method should no longer be used. It previously should only have been used during storage instantiation.
Parameters
\Drupal\layout_builder\SectionListInterface $section_list: The section list.
Throws
\Exception
Deprecated
in drupal:8.7.0 and is removed from drupal:9.0.0. This method should no longer be used. The section list should be derived from context. See https://www.drupal.org/node/3016262.
File
-
core/
modules/ layout_builder/ src/ Plugin/ SectionStorage/ SectionStorageBase.php, line 37
Class
- SectionStorageBase
- Provides a base class for Section Storage types.
Namespace
Drupal\layout_builder\Plugin\SectionStorageCode
public function setSectionList(SectionListInterface $section_list) {
@trigger_error('\\Drupal\\layout_builder\\SectionStorageInterface::setSectionList() is deprecated in Drupal 8.7.0 and will be removed before Drupal 9.0.0. This method should no longer be used. The section list should be derived from context. See https://www.drupal.org/node/3016262.', E_USER_DEPRECATED);
throw new \Exception('\\Drupal\\layout_builder\\SectionStorageInterface::setSectionList() must no longer be called. The section list should be derived from context. See https://www.drupal.org/node/3016262.');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.