You are here

public function EventMeta::isDefaultRules in RNG - Events and Registrations 3.x

Same name and namespace in other branches
  1. 8.2 src/EventMeta.php \Drupal\rng\EventMeta::isDefaultRules()
  2. 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\rng

Code

public function isDefaultRules($trigger) {
  return (bool) (!$this
    ->getRules($trigger));
}