ChainRequestPolicyInterface.php 434 B

1234567891011121314151617181920
  1. <?php
  2. namespace Drupal\Core\PageCache;
  3. /**
  4. * Defines the interface for compound request policies.
  5. */
  6. interface ChainRequestPolicyInterface extends RequestPolicyInterface {
  7. /**
  8. * Add a policy to the list of policy rules.
  9. *
  10. * @param \Drupal\Core\PageCache\RequestPolicyInterface $policy
  11. * The request policy rule to add.
  12. *
  13. * @return $this
  14. */
  15. public function addPolicy(RequestPolicyInterface $policy);
  16. }