function DatetimeViewsHooks::fieldViewsData
Implements hook_field_views_data().
File
-
core/
modules/ datetime/ src/ Hook/ DatetimeViewsHooks.php, line 21
Class
- DatetimeViewsHooks
- Hook implementations for datetime.
Namespace
Drupal\datetime\HookCode
public function fieldViewsData(FieldStorageConfigInterface $field_storage) : array {
return $this->dateTimeViewsHelper
->buildViewsData($field_storage, [], $field_storage->getMainPropertyName());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.