You are here

public function CurrentTime::defaultConfiguration in RNG - Events and Registrations 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Condition/CurrentTime.php \Drupal\rng\Plugin\Condition\CurrentTime::defaultConfiguration()
  2. 3.x src/Plugin/Condition/CurrentTime.php \Drupal\rng\Plugin\Condition\CurrentTime::defaultConfiguration()

Return value

array

  • date: int: Unix timestamp of a date the rule can be triggered, as a minimum. This value is canonical, the rng_rule_schedule date is a mirror and is reflected when this condition is saved.
  • negate: boolean: If TRUE, this condition will evaluate if current time is after $date. If FALSE, before $date.

Overrides ConditionPluginBase::defaultConfiguration

1 call to CurrentTime::defaultConfiguration()
RuleScheduler::defaultConfiguration in src/Plugin/Condition/RuleScheduler.php
1 method overrides CurrentTime::defaultConfiguration()
RuleScheduler::defaultConfiguration in src/Plugin/Condition/RuleScheduler.php

File

src/Plugin/Condition/CurrentTime.php, line 29

Class

CurrentTime
Evaluates if the current date is before or after the the configured date.

Namespace

Drupal\rng\Plugin\Condition

Code

public function defaultConfiguration() {
  return [
    'date' => NULL,
  ] + parent::defaultConfiguration();
}