protected function DateRecurViewsHooks::getParentFieldViewsData in Recurring Dates Field 3.1.x
Same name and namespace in other branches
- 8.2 src/DateRecurViewsHooks.php \Drupal\date_recur\DateRecurViewsHooks::getParentFieldViewsData()
- 3.x src/DateRecurViewsHooks.php \Drupal\date_recur\DateRecurViewsHooks::getParentFieldViewsData()
- 3.0.x src/DateRecurViewsHooks.php \Drupal\date_recur\DateRecurViewsHooks::getParentFieldViewsData()
Get the views definition for the field, as defined by datetime_range.
Parameters
\Drupal\field\FieldStorageConfigInterface $fieldDefinition: A field storage definition.
Return value
array The views data for a field.
1 call to DateRecurViewsHooks::getParentFieldViewsData()
- DateRecurViewsHooks::fieldViewsData in src/
DateRecurViewsHooks.php - Implements hook_field_views_data().
File
- src/
DateRecurViewsHooks.php, line 402
Class
- DateRecurViewsHooks
- Defines Views hooks.
Namespace
Drupal\date_recurCode
protected function getParentFieldViewsData(FieldStorageConfigInterface $fieldDefinition) : array {
$this->moduleHandler
->loadInclude('datetime_range', 'inc', 'datetime_range.views');
return \datetime_range_field_views_data($fieldDefinition);
}