DefaultRequestPolicy::__construct

public DefaultRequestPolicy::__construct()

Constructs the default Dynamic Page Cache request policy.

File

core/modules/dynamic_page_cache/src/PageCache/RequestPolicy/DefaultRequestPolicy.php, line 20

Class

DefaultRequestPolicy
The default Dynamic Page Cache request policy.

Namespace

Drupal\dynamic_page_cache\PageCache\RequestPolicy

Code

public function __construct() {
  $this->addPolicy(new CommandLineOrUnsafeMethod());
}
doc_Drupal
2016-10-29 09:01:50
Comments
Leave a Comment

Please login to continue.