Loading src/Plugin/Field/FieldFormatter/OfficeHoursFormatterBase.php +1 −1 Original line number Diff line number Diff line Loading @@ -416,7 +416,7 @@ abstract class OfficeHoursFormatterBase extends FormatterBase { // $cache_tags = $field_definition->getTargetEntityTypeId(); $cache_tags = $field_definition->id(); $elements['#cache'] = [ 'max-age' => $items->getStatusTimeLeft($settings, $this->getFieldSettings()), 'max-age' => $items->getCacheTime($settings, $this->getFieldSettings()), // @todo Add per-entity tags 'thing:identifier'. // @see https://www.drupal.org/docs/drupal-apis/cache-api/cache-tags 'tags' => [$cache_tags], Loading Loading
src/Plugin/Field/FieldFormatter/OfficeHoursFormatterBase.php +1 −1 Original line number Diff line number Diff line Loading @@ -416,7 +416,7 @@ abstract class OfficeHoursFormatterBase extends FormatterBase { // $cache_tags = $field_definition->getTargetEntityTypeId(); $cache_tags = $field_definition->id(); $elements['#cache'] = [ 'max-age' => $items->getStatusTimeLeft($settings, $this->getFieldSettings()), 'max-age' => $items->getCacheTime($settings, $this->getFieldSettings()), // @todo Add per-entity tags 'thing:identifier'. // @see https://www.drupal.org/docs/drupal-apis/cache-api/cache-tags 'tags' => [$cache_tags], Loading