You are here

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

Retrieve the months_limit value from the field definition.

3 calls to SmartDateRule::getMonthsLimit()
Instances::listInstancesOutput in modules/smart_date_recur/src/Controller/Instances.php
Provide a list of rule items with operations to change rule items.
SmartDateRule::getNewInstances in modules/smart_date_recur/src/Entity/SmartDateRule.php
Generate default instances based on rule structure.
SmartDateWidgetBase::massageFormValues in src/Plugin/Field/FieldWidget/SmartDateWidgetBase.php
Massages the form values into the format expected for field values.

File

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

Class

SmartDateRule
Defines the Smart date rule entity.

Namespace

Drupal\smart_date_recur\Entity

Code

public static function getMonthsLimit($field_def) {
  $month_limit = static::getThirdPartyFallback($field_def, 'month_limit', 12);
  return $month_limit;
}