public function DateTimeEnhancerBase::defaultConfiguration in JSON:API Extras 8
Same name and namespace in other branches
- 8.3 src/Plugin/DateTimeEnhancerBase.php \Drupal\jsonapi_extras\Plugin\DateTimeEnhancerBase::defaultConfiguration()
- 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\PluginCode
public function defaultConfiguration() {
return [
'dateTimeFormat' => \DateTime::ISO8601,
];
}