function datetime_field_views_data

Same name in other branches
  1. 8.9.x core/modules/datetime/datetime.views.inc \datetime_field_views_data()
  2. 10 core/modules/datetime/datetime.views.inc \datetime_field_views_data()

Implements hook_field_views_data().

File

core/modules/datetime/datetime.views.inc, line 13

Code

function datetime_field_views_data(FieldStorageConfigInterface $field_storage) {
    return datetime_type_field_views_data_helper($field_storage, [], $field_storage->getMainPropertyName());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.