public static function SmartDateRule::getFrequencyLabelsOrNull in Smart Date 3.2.x
Same name and namespace in other branches
- 3.0.x modules/smart_date_recur/src/Entity/SmartDateRule.php \Drupal\smart_date_recur\Entity\SmartDateRule::getFrequencyLabelsOrNull()
- 3.1.x modules/smart_date_recur/src/Entity/SmartDateRule.php \Drupal\smart_date_recur\Entity\SmartDateRule::getFrequencyLabelsOrNull()
- 3.3.x modules/smart_date_recur/src/Entity/SmartDateRule.php \Drupal\smart_date_recur\Entity\SmartDateRule::getFrequencyLabelsOrNull()
- 3.4.x modules/smart_date_recur/src/Entity/SmartDateRule.php \Drupal\smart_date_recur\Entity\SmartDateRule::getFrequencyLabelsOrNull()
Return an array of frequency labels.
File
- modules/
smart_date_recur/ src/ Entity/ SmartDateRule.php, line 625
Class
- SmartDateRule
- Defines the Smart date rule entity.
Namespace
Drupal\smart_date_recur\EntityCode
public static function getFrequencyLabelsOrNull() {
$values = [
'none' => 'Not recurring',
];
$labels = static::getFrequencyLabels();
return array_merge($values, $labels);
}