Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

DatetimeViewsHooks.php

Namespace

Drupal\datetime\Hook

File

core/modules/datetime/src/Hook/DatetimeViewsHooks.php

View source
<?php

namespace Drupal\datetime\Hook;

use Drupal\field\FieldStorageConfigInterface;
use Drupal\Core\Hook\Attribute\Hook;

/**
 * Hook implementations for datetime.
 */
class DatetimeViewsHooks {
    
    /**
     * Implements hook_field_views_data().
     */
    public function fieldViewsData(FieldStorageConfigInterface $field_storage) : array {
        return datetime_type_field_views_data_helper($field_storage, [], $field_storage->getMainPropertyName());
    }

}

Classes

Title Deprecated Summary
DatetimeViewsHooks Hook implementations for datetime.

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal