You are here

interface LayoutBuilderEnabledInterface in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/layout_builder/src/LayoutBuilderEnabledInterface.php \Drupal\layout_builder\LayoutBuilderEnabledInterface

Provides methods for enabling and disabling Layout Builder.

Hierarchy

Expanded class hierarchy of LayoutBuilderEnabledInterface

All classes that implement LayoutBuilderEnabledInterface

1 file declares its use of LayoutBuilderEnabledInterface
LayoutEntityDisplayInterface.php in core/modules/layout_builder/src/Entity/LayoutEntityDisplayInterface.php

File

core/modules/layout_builder/src/LayoutBuilderEnabledInterface.php, line 8

Namespace

Drupal\layout_builder
View source
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();

}

Members

Namesort descending Modifiers Type Description Overrides
LayoutBuilderEnabledInterface::disableLayoutBuilder public function Disables the Layout Builder. 2
LayoutBuilderEnabledInterface::enableLayoutBuilder public function Enables the Layout Builder. 2
LayoutBuilderEnabledInterface::isLayoutBuilderEnabled public function Determines if Layout Builder is enabled. 2