public function CurrentTime::summary in RNG - Events and Registrations 8.2
Same name and namespace in other branches
- 8 src/Plugin/Condition/CurrentTime.php \Drupal\rng\Plugin\Condition\CurrentTime::summary()
- 3.x src/Plugin/Condition/CurrentTime.php \Drupal\rng\Plugin\Condition\CurrentTime::summary()
Provides a human readable summary of the condition's configuration.
Overrides ConditionInterface::summary
1 method overrides CurrentTime::summary()
- RuleScheduler::summary in src/
Plugin/ Condition/ RuleScheduler.php - Provides a human readable summary of the condition's configuration.
File
- src/
Plugin/ Condition/ CurrentTime.php, line 98
Class
- CurrentTime
- Evaluates if the current date is before or after the the configured date.
Namespace
Drupal\rng\Plugin\ConditionCode
public function summary() {
$t_args = [
'@date' => DrupalDateTime::createFromTimestamp($this
->getDate()),
];
if (!$this
->isNegated()) {
return $this
->t('Current date is after @date', $t_args);
}
else {
return $this
->t('Current date is before @date', $t_args);
}
}