annotate core/modules/layout_builder/src/DefaultsSectionStorageInterface.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents c2387f117808
children af1871eacc83
rev   line source
Chris@14 1 <?php
Chris@14 2
Chris@14 3 namespace Drupal\layout_builder;
Chris@14 4
Chris@16 5 use Drupal\Core\Config\Entity\ThirdPartySettingsInterface;
Chris@16 6
Chris@14 7 /**
Chris@14 8 * Defines an interface for an object that stores layout sections for defaults.
Chris@14 9 *
Chris@14 10 * @internal
Chris@14 11 * Layout Builder is currently experimental and should only be leveraged by
Chris@14 12 * experimental modules and development releases of contributed modules.
Chris@14 13 * See https://www.drupal.org/core/experimental for more information.
Chris@17 14 *
Chris@17 15 * @todo Refactor this interface in https://www.drupal.org/node/2985362.
Chris@14 16 */
Chris@17 17 interface DefaultsSectionStorageInterface extends SectionStorageInterface, ThirdPartySettingsInterface, LayoutBuilderEnabledInterface {
Chris@14 18
Chris@14 19 /**
Chris@14 20 * Determines if the defaults allow custom overrides.
Chris@14 21 *
Chris@14 22 * @return bool
Chris@14 23 * TRUE if custom overrides are allowed, FALSE otherwise.
Chris@14 24 */
Chris@14 25 public function isOverridable();
Chris@14 26
Chris@14 27 /**
Chris@14 28 * Sets the defaults to allow or disallow overrides.
Chris@14 29 *
Chris@14 30 * @param bool $overridable
Chris@14 31 * TRUE if the display should allow overrides, FALSE otherwise.
Chris@14 32 *
Chris@14 33 * @return $this
Chris@14 34 */
Chris@14 35 public function setOverridable($overridable = TRUE);
Chris@14 36
Chris@14 37 }