Mercurial > hg > isophonics-drupal-site
annotate core/modules/layout_builder/src/DefaultsSectionStorageInterface.php @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | af1871eacc83 |
children |
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@17 | 10 * @todo Refactor this interface in https://www.drupal.org/node/2985362. |
Chris@14 | 11 */ |
Chris@17 | 12 interface DefaultsSectionStorageInterface extends SectionStorageInterface, ThirdPartySettingsInterface, LayoutBuilderEnabledInterface { |
Chris@14 | 13 |
Chris@14 | 14 /** |
Chris@14 | 15 * Determines if the defaults allow custom overrides. |
Chris@14 | 16 * |
Chris@14 | 17 * @return bool |
Chris@14 | 18 * TRUE if custom overrides are allowed, FALSE otherwise. |
Chris@14 | 19 */ |
Chris@14 | 20 public function isOverridable(); |
Chris@14 | 21 |
Chris@14 | 22 /** |
Chris@14 | 23 * Sets the defaults to allow or disallow overrides. |
Chris@14 | 24 * |
Chris@14 | 25 * @param bool $overridable |
Chris@14 | 26 * TRUE if the display should allow overrides, FALSE otherwise. |
Chris@14 | 27 * |
Chris@14 | 28 * @return $this |
Chris@14 | 29 */ |
Chris@14 | 30 public function setOverridable($overridable = TRUE); |
Chris@14 | 31 |
Chris@14 | 32 } |