You are here

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

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

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

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,
  ];
}