summaryrefslogtreecommitdiffstats
path: root/src/Plugin/jsonapi/FieldEnhancer/DateTimeEnhancer.php
diff options
context:
space:
mode:
authorMateu Aguiló Bosch2017-05-17 23:31:28 +0200
committerMateu Aguiló Bosch2017-05-17 23:31:28 +0200
commit0284cd95abda320075b4f6f0d00d4a09528ec534 (patch)
treeb8930b0f25cc0f10bdfc1df79a9c663d6df36a58 /src/Plugin/jsonapi/FieldEnhancer/DateTimeEnhancer.php
parent416c62f6281692033d367efc132542d9be405994 (diff)
fix(Enhancers): Fix default form value for enhancers
Diffstat (limited to 'src/Plugin/jsonapi/FieldEnhancer/DateTimeEnhancer.php')
-rw-r--r--src/Plugin/jsonapi/FieldEnhancer/DateTimeEnhancer.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Plugin/jsonapi/FieldEnhancer/DateTimeEnhancer.php b/src/Plugin/jsonapi/FieldEnhancer/DateTimeEnhancer.php
index 622e257..6c55ee9 100644
--- a/src/Plugin/jsonapi/FieldEnhancer/DateTimeEnhancer.php
+++ b/src/Plugin/jsonapi/FieldEnhancer/DateTimeEnhancer.php
@@ -57,9 +57,9 @@ class DateTimeEnhancer extends ResourceFieldEnhancerBase {
* {@inheritdoc}
*/
public function getSettingsForm(array $resource_field_info) {
- $settings = empty($resource_field_info['settings'])
+ $settings = empty($resource_field_info['enhancer']['settings'])
? $this->getConfiguration()
- : $resource_field_info['settings'];
+ : $resource_field_info['enhancer']['settings'];
return [
'dateTimeFormat' => [