You are here

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

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

Return value

array

  • rng_rule_component: integer: Associated rule component ID.
  • rng_rule_scheduler: integer: ID of a rng_rule_schedule entity. If the ID is of a non-existent rng_rule_schedule entity, assume the rule has been executed successfully. The parent date configuration value is mirrored to the rng_rule_schedule entity when this form is saved.
  • negate: has no effect.

Overrides CurrentTime::defaultConfiguration

File

src/Plugin/Condition/RuleScheduler.php, line 62

Class

RuleScheduler
Schedules rule execution based on the configured date.

Namespace

Drupal\rng\Plugin\Condition

Code

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