You are here

public function CacheableResponseSubscriber::getOverrideListTagsSetting in Pantheon Advanced Page Cache 8

Returns whether entity_list tags should be overridden.

Overriding these tags was the initial behavior of the 1.0 version of this module. That is no longer recommended.

1 call to CacheableResponseSubscriber::getOverrideListTagsSetting()
CacheableResponseSubscriber::onRespond in src/EventSubscriber/CacheableResponseSubscriber.php
Adds Surrogate-Key header to cacheable master responses.

File

src/EventSubscriber/CacheableResponseSubscriber.php, line 55

Class

CacheableResponseSubscriber
Adds Surrogate-Key header to cacheable master responses.

Namespace

Drupal\pantheon_advanced_page_cache\EventSubscriber

Code

public function getOverrideListTagsSetting() {
  $config = $this->configFactory
    ->get('pantheon_advanced_page_cache.settings');

  // Only return FALSE if this config value is really set to false.
  // A null value should return TRUE for backwards compatibility.
  if ($config
    ->get('override_list_tags') === FALSE) {
    return FALSE;
  }
  return TRUE;
}