LayoutBuilderOverridableInterface.php

Same filename in other branches
  1. 11.x core/modules/layout_builder/src/LayoutBuilderOverridableInterface.php

Namespace

Drupal\layout_builder

File

core/modules/layout_builder/src/LayoutBuilderOverridableInterface.php

View source
<?php

namespace Drupal\layout_builder;


/**
 * Provides an interface for displays that could be overridable.
 */
interface LayoutBuilderOverridableInterface {
    
    /**
     * Determines if the display allows custom overrides.
     *
     * @return bool
     *   TRUE if custom overrides are allowed, FALSE otherwise.
     */
    public function isOverridable();
    
    /**
     * Sets the display to allow or disallow overrides.
     *
     * @param bool $overridable
     *   TRUE if the display should allow overrides, FALSE otherwise.
     *
     * @return $this
     */
    public function setOverridable($overridable = TRUE);

}

Interfaces

Title Deprecated Summary
LayoutBuilderOverridableInterface Provides an interface for displays that could be overridable.

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