You are here

public function DateRecurHelper::getRules in Recurring Dates Field 8.2

Same name and namespace in other branches
  1. 3.x src/DateRecurHelper.php \Drupal\date_recur\DateRecurHelper::getRules()
  2. 3.0.x src/DateRecurHelper.php \Drupal\date_recur\DateRecurHelper::getRules()
  3. 3.1.x src/DateRecurHelper.php \Drupal\date_recur\DateRecurHelper::getRules()

Get the rules that comprise this helper.

Return value

\Drupal\date_recur\DateRecurRuleInterface[] The rules that comprise this helper.

Overrides DateRecurHelperInterface::getRules

File

src/DateRecurHelper.php, line 72

Class

DateRecurHelper
Helper for recurring rules.

Namespace

Drupal\date_recur

Code

public function getRules() : array {
  $rules = $this->dateRecurHelper
    ->getRules();
  assert(is_array($rules));
  assert(Inspector::assertAllObjects($rules, DateRecurRuleInterface::class));
  return $rules;
}