You are here

public function BehaviorSettings::setAllowOverride in Rabbit Hole 2.x

Same name and namespace in other branches
  1. 8 src/Entity/BehaviorSettings.php \Drupal\rabbit_hole\Entity\BehaviorSettings::setAllowOverride()

Set whether overrides are allowed if this is for a bundle.

Parameters

int $allow_override: 0 (N/A), 1 (Allow), or 2 (Disallow).

Overrides BehaviorSettingsInterface::setAllowOverride

File

src/Entity/BehaviorSettings.php, line 125

Class

BehaviorSettings
Defines the Behavior settings entity.

Namespace

Drupal\rabbit_hole\Entity

Code

public function setAllowOverride($allow_override) {
  if (!is_bool($allow_override)) {
    throw new InvalidBehaviorSettingException('allow_override');
  }
  $this->allow_override = $allow_override;
}