You are here

public function LayoutBuilderEntityViewDisplay::isOverridable in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php \Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay::isOverridable()
  2. 9 core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php \Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay::isOverridable()

Determines if the display allows custom overrides.

Return value

bool TRUE if custom overrides are allowed, FALSE otherwise.

Overrides LayoutEntityDisplayInterface::isOverridable

1 call to LayoutBuilderEntityViewDisplay::isOverridable()
LayoutBuilderEntityViewDisplay::preSave in core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php
Acts on an entity before the presave hook is invoked.

File

core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php, line 54

Class

LayoutBuilderEntityViewDisplay
Provides an entity view display entity that has a layout.

Namespace

Drupal\layout_builder\Entity

Code

public function isOverridable() {
  return $this
    ->isLayoutBuilderEnabled() && $this
    ->getThirdPartySetting('layout_builder', 'allow_custom', FALSE);
}