public function BehaviorSettings::setAllowOverride in Rabbit Hole 8
Same name and namespace in other branches
- 2.x 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\EntityCode
public function setAllowOverride($allow_override) {
if (!is_bool($allow_override)) {
throw new InvalidBehaviorSettingException('allow_override');
}
$this->allow_override = $allow_override;
}