You are here

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

Get rule_component entity ID.

1 call to RuleScheduler::getRuleComponentId()
RuleScheduler::updateRuleSchedulerEntity in src/Plugin/Condition/RuleScheduler.php
Create, update, or delete the associated rule scheduler entity.

File

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

Class

RuleScheduler
Schedules rule execution based on the configured date.

Namespace

Drupal\rng\Plugin\Condition

Code

public function getRuleComponentId() {
  if (isset($this->configuration['rng_rule_component'])) {
    return $this->configuration['rng_rule_component'];
  }
  return NULL;
}