summaryrefslogtreecommitdiffstatshomepage
path: root/core/modules/layout_builder/src/OverridesSectionStorageInterface.php
blob: 94ff3bea664ce0d97dd3ee68a655fa6cd4fae813 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php

namespace Drupal\layout_builder;

/**
 * Defines an interface for an object that stores layout sections for overrides.
 */
interface OverridesSectionStorageInterface extends SectionStorageInterface {

  /**
   * Returns the corresponding defaults section storage for this override.
   *
   * @return \Drupal\layout_builder\DefaultsSectionStorageInterface
   *   The defaults section storage.
   *
   * @todo Determine if this method needs a parameter in
   *   https://www.drupal.org/project/drupal/issues/2907413.
   */
  public function getDefaultSectionStorage();

  /**
   * Indicates if overrides are in use.
   *
   * @return bool
   *   TRUE if this overrides section storage is in use, otherwise FALSE.
   */
  public function isOverridden();

}