LayoutBuilderEnabledInterface.php

Same filename in other branches
  1. 9 core/modules/layout_builder/src/LayoutBuilderEnabledInterface.php
  2. 8.9.x core/modules/layout_builder/src/LayoutBuilderEnabledInterface.php
  3. 11.x core/modules/layout_builder/src/LayoutBuilderEnabledInterface.php

Namespace

Drupal\layout_builder

File

core/modules/layout_builder/src/LayoutBuilderEnabledInterface.php

View source
<?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();

}

Interfaces

Title Deprecated Summary
LayoutBuilderEnabledInterface Provides methods for enabling and disabling Layout Builder.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.