You are here

public constant DateRecurGranularityMap::GRANULARITY in Recurring Dates Field 3.0.x

Same name and namespace in other branches
  1. 8.2 src/DateRecurGranularityMap.php \Drupal\date_recur\DateRecurGranularityMap::GRANULARITY
  2. 3.x src/DateRecurGranularityMap.php \Drupal\date_recur\DateRecurGranularityMap::GRANULARITY
  3. 3.1.x src/DateRecurGranularityMap.php \Drupal\date_recur\DateRecurGranularityMap::GRANULARITY

Granularities and their associated weight.

Larger weights correspond to smaller time units.

File

src/DateRecurGranularityMap.php, line 19

Class

DateRecurGranularityMap
Granularity maps.

Namespace

Drupal\date_recur

Code

public const GRANULARITY = [
  'year' => 1,
  'month' => 2,
  'day' => 3,
  'second' => 6,
];