public function EventMeta::isDefaultRules in RNG - Events and Registrations 3.x
Same name and namespace in other branches
- 8.2 src/EventMeta.php \Drupal\rng\EventMeta::isDefaultRules()
- 8 src/EventMeta.php \Drupal\rng\EventMeta::isDefaultRules()
Determines if this event should use site default rules.
If the event has no rules defined, this will determine if site default rules should be used.
Parameters
string $trigger: The trigger ID for the rules.
Return value
bool Whether site default rules should be used.
Overrides EventMetaInterface::isDefaultRules
File
- src/
EventMeta.php, line 425
Class
- EventMeta
- Meta event wrapper for RNG.
Namespace
Drupal\rngCode
public function isDefaultRules($trigger) {
return (bool) (!$this
->getRules($trigger));
}