You are here

public function DateTimeEnhancerBase::defaultConfiguration in JSON:API Extras 8.2

Same name and namespace in other branches
  1. 8.3 src/Plugin/DateTimeEnhancerBase.php \Drupal\jsonapi_extras\Plugin\DateTimeEnhancerBase::defaultConfiguration()
  2. 8 src/Plugin/DateTimeEnhancerBase.php \Drupal\jsonapi_extras\Plugin\DateTimeEnhancerBase::defaultConfiguration()

Overrides ResourceFieldEnhancerBase::defaultConfiguration

File

src/Plugin/DateTimeEnhancerBase.php, line 13

Class

DateTimeEnhancerBase
Base class for date and time based resourceFieldEnhancer plugins.

Namespace

Drupal\jsonapi_extras\Plugin

Code

public function defaultConfiguration() {
  return [
    'dateTimeFormat' => \DateTime::ISO8601,
  ];
}