function WebTestBase::setHttpResponseDebugCacheabilityHeaders

Enables/disables the cacheability headers.

Sets the http.response.debug_cacheability_headers container parameter.

Parameters

bool $value: (optional) Whether the debugging cacheability headers should be sent.

File

core/modules/simpletest/src/WebTestBase.php, line 2078

Class

WebTestBase
Test case for typical Drupal tests.

Namespace

Drupal\simpletest

Code

protected function setHttpResponseDebugCacheabilityHeaders($value = TRUE) {
    $this->setContainerParameter('http.response.debug_cacheability_headers', $value);
    $this->rebuildContainer();
    $this->resetAll();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.