summaryrefslogtreecommitdiffstats
path: root/src/Normalizer
diff options
context:
space:
mode:
authorarshad2017-05-02 21:00:38 (GMT)
committerMateu Aguiló Bosch2017-05-02 21:00:38 (GMT)
commitc11da63761880dcdc35de7a42a2990a001f43c89 (patch)
tree0e8b5a5617c4581b57cb2613dc5870d99b172270 /src/Normalizer
parent03fc3daf459ab9b9119c91dbbccf79eed4c94f84 (diff)
feat(Extensibility): Allow custom path prefix (#2873982 by arshadcn, e0ipso)
Diffstat (limited to 'src/Normalizer')
-rw-r--r--src/Normalizer/FieldItemNormalizer.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Normalizer/FieldItemNormalizer.php b/src/Normalizer/FieldItemNormalizer.php
index 7c34231..9a41738 100644
--- a/src/Normalizer/FieldItemNormalizer.php
+++ b/src/Normalizer/FieldItemNormalizer.php
@@ -80,6 +80,9 @@ class FieldItemNormalizer extends NormalizerBase {
$context['cacheable_metadata']->addCacheableDependency(
$this->getResourceConfig($entity_type_id, $bundle_id)
);
+ $context['cacheable_metadata']->addCacheableDependency(
+ \Drupal::config('jsonapi_extras.settings')
+ );
return $normalized_output;
}