You are here

public function RuleScheduler::getRuleScheduler in RNG - Events and Registrations 3.x

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

Gets the rule scheduler entity.

Return value

\Drupal\rng\Entity\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 87

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;
}