Commit e98821dd authored by John Voskuilen's avatar John Voskuilen
Browse files

Issue #2767779: Fix Field Caching for formatter

parent a84c75e2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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],