public static function SmartDateRule::getFrequencyLabels in Smart Date 3.4.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::getFrequencyLabels()
- 3.1.x modules/smart_date_recur/src/Entity/SmartDateRule.php \Drupal\smart_date_recur\Entity\SmartDateRule::getFrequencyLabels()
- 3.2.x modules/smart_date_recur/src/Entity/SmartDateRule.php \Drupal\smart_date_recur\Entity\SmartDateRule::getFrequencyLabels()
- 3.3.x modules/smart_date_recur/src/Entity/SmartDateRule.php \Drupal\smart_date_recur\Entity\SmartDateRule::getFrequencyLabels()
Return an array of frequency labels.
4 calls to SmartDateRule::getFrequencyLabels()
- Frequency::init in modules/
smart_date_recur/ src/ Plugin/ views/ filter/ Frequency.php - Overrides \Drupal\views\Plugin\views\HandlerBase::init().
- SmartDateRule::getFrequencyLabelsOrNull in modules/
smart_date_recur/ src/ Entity/ SmartDateRule.php - Return an array of frequency labels.
- SmartDateRule::getTextRule in modules/
smart_date_recur/ src/ Entity/ SmartDateRule.php - Use the transformer to get text output of the rule.
- _smart_date_recur_label_freq_defaults in modules/
smart_date_recur/ smart_date_recur.module - Helper function to centralize default frequency values.
File
- modules/
smart_date_recur/ src/ Entity/ SmartDateRule.php, line 616
Class
- SmartDateRule
- Defines the Smart date rule entity.
Namespace
Drupal\smart_date_recur\EntityCode
public static function getFrequencyLabels() {
return [
'MINUTELY' => t('By Minutes'),
'HOURLY' => t('Hourly'),
'DAILY' => t('Daily'),
'WEEKLY' => t('Weekly'),
'MONTHLY' => t('Monthly'),
'YEARLY' => t('Annually'),
];
}