ChainRequestPolicyInterface.php

Same filename in other branches
  1. 9 core/lib/Drupal/Core/PageCache/ChainRequestPolicyInterface.php
  2. 10 core/lib/Drupal/Core/PageCache/ChainRequestPolicyInterface.php
  3. 11.x core/lib/Drupal/Core/PageCache/ChainRequestPolicyInterface.php

Namespace

Drupal\Core\PageCache

File

core/lib/Drupal/Core/PageCache/ChainRequestPolicyInterface.php

View source
<?php

namespace Drupal\Core\PageCache;


/**
 * Defines the interface for compound request policies.
 */
interface ChainRequestPolicyInterface extends RequestPolicyInterface {
    
    /**
     * Add a policy to the list of policy rules.
     *
     * @param \Drupal\Core\PageCache\RequestPolicyInterface $policy
     *   The request policy rule to add.
     *
     * @return $this
     */
    public function addPolicy(RequestPolicyInterface $policy);

}

Interfaces

Title Deprecated Summary
ChainRequestPolicyInterface Defines the interface for compound request policies.

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