You are here

function EventType::setAllowCustomRules in RNG - Events and Registrations 8

Set whether event managers can customize default rules.

Parameters

boolean $allow: Whether event managers are allowed to customize default rules.

Return value

$this Return this event type for chaining.

Overrides EventTypeInterface::setAllowCustomRules

File

src/Entity/EventType.php, line 180

Class

EventType
Defines the event type entity.

Namespace

Drupal\rng\Entity

Code

function setAllowCustomRules($allow) {
  $this->custom_rules = $allow;
  return $this;
}