You are here

public function RuleScheduler::getRuleScheduler 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::getRuleScheduler()
  2. 3.x src/Plugin/Condition/RuleScheduler.php \Drupal\rng\Plugin\Condition\RuleScheduler::getRuleScheduler()

Gets the rule scheduler entity.

Return value

\Drupal\rng\RuleScheduleInterface

3 calls to RuleScheduler::getRuleScheduler()
RuleScheduler::buildConfigurationForm in src/Plugin/Condition/RuleScheduler.php
Form constructor.
RuleScheduler::summary in src/Plugin/Condition/RuleScheduler.php
Provides a human readable summary of the condition's configuration.
RuleScheduler::updateRuleSchedulerEntity in src/Plugin/Condition/RuleScheduler.php
Create, update, or delete the associated rule scheduler entity.

File

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

Class

RuleScheduler
Schedules rule execution based on the configured date.

Namespace

Drupal\rng\Plugin\Condition

Code

public function getRuleScheduler() {
  if (isset($this->configuration['rng_rule_scheduler'])) {
    return RuleSchedule::load($this->configuration['rng_rule_scheduler']);
  }
  return NULL;
}