summaryrefslogtreecommitdiffstatshomepage
path: root/core/modules/layout_builder/src/LayoutBuilderEnabledInterface.php
blob: dab8fc4bef064f08dce38fb196be6dea7a42016f (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
30
31
32
<?php

namespace Drupal\layout_builder;

/**
 * Provides methods for enabling and disabling Layout Builder.
 */
interface LayoutBuilderEnabledInterface {

  /**
   * Determines if Layout Builder is enabled.
   *
   * @return bool
   *   TRUE if Layout Builder is enabled, FALSE otherwise.
   */
  public function isLayoutBuilderEnabled();

  /**
   * Enables the Layout Builder.
   *
   * @return $this
   */
  public function enableLayoutBuilder();

  /**
   * Disables the Layout Builder.
   *
   * @return $this
   */
  public function disableLayoutBuilder();

}