You are here

public static function SmartDateRule::getFrequencyLabels in Smart Date 3.2.x

Same name and namespace in other branches
  1. 3.0.x modules/smart_date_recur/src/Entity/SmartDateRule.php \Drupal\smart_date_recur\Entity\SmartDateRule::getFrequencyLabels()
  2. 3.1.x modules/smart_date_recur/src/Entity/SmartDateRule.php \Drupal\smart_date_recur\Entity\SmartDateRule::getFrequencyLabels()
  3. 3.3.x modules/smart_date_recur/src/Entity/SmartDateRule.php \Drupal\smart_date_recur\Entity\SmartDateRule::getFrequencyLabels()
  4. 3.4.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 611

Class

SmartDateRule
Defines the Smart date rule entity.

Namespace

Drupal\smart_date_recur\Entity

Code

public static function getFrequencyLabels() {
  return [
    'MINUTELY' => t('By Minutes'),
    'HOURLY' => t('Hourly'),
    'DAILY' => t('Daily'),
    'WEEKLY' => t('Weekly'),
    'MONTHLY' => t('Monthly'),
    'YEARLY' => t('Annually'),
  ];
}