You are here

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

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

3 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.

File

modules/smart_date_recur/src/Entity/SmartDateRule.php, line 524

Class

SmartDateRule
Defines the Smart date rule entity.

Namespace

Drupal\smart_date_recur\Entity

Code

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