You are here

public static function SmartDateRule::getFrequencyLabelsOrNull in Smart Date 3.1.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::getFrequencyLabelsOrNull()
  2. 3.2.x modules/smart_date_recur/src/Entity/SmartDateRule.php \Drupal\smart_date_recur\Entity\SmartDateRule::getFrequencyLabelsOrNull()
  3. 3.3.x modules/smart_date_recur/src/Entity/SmartDateRule.php \Drupal\smart_date_recur\Entity\SmartDateRule::getFrequencyLabelsOrNull()
  4. 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\Entity

Code

public static function getFrequencyLabelsOrNull() {
  $values = [
    'none' => 'Not recurring',
  ];
  $labels = static::getFrequencyLabels();
  return array_merge($values, $labels);
}