public function RngEventType::setAllowCustomRules in RNG - Events and Registrations 8.2
Same name and namespace in other branches
- 3.x src/Entity/RngEventType.php \Drupal\rng\Entity\RngEventType::setAllowCustomRules()
Set whether event managers can customize default rules.
Parameters
bool $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/ RngEventType.php, line 220
Class
- RngEventType
- Defines the event type entity.
Namespace
Drupal\rng\EntityCode
public function setAllowCustomRules($allow) {
$this->custom_rules = $allow;
return $this;
}