You are here

function EventMetaInterface::getRules in RNG - Events and Registrations 8

Same name and namespace in other branches
  1. 8.2 src/EventMetaInterface.php \Drupal\rng\EventMetaInterface::getRules()
  2. 3.x src/EventMetaInterface.php \Drupal\rng\EventMetaInterface::getRules()

Get all rules for this event.

Parameters

string|NULL $trigger: The trigger ID for the rule.

bool $defaults: If there are no rules in the database, generate some unsaved rules.

bool $is_active: The status of the rules, or set to NULL for any status.

Return value

\Drupal\rng\RuleInterface[] An array of rng_rule entities keyed by rule ID.

1 method overrides EventMetaInterface::getRules()
EventMeta::getRules in src/EventMeta.php
Get all rules for this event.

File

src/EventMetaInterface.php, line 224

Class

EventMetaInterface
Interface for EventMeta.

Namespace

Drupal\rng

Code

function getRules($trigger = NULL, $defaults = FALSE, $is_active = TRUE);