Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ChainRequestMatcher.php

function ChainRequestMatcher::matches

Overrides RequestMatcherInterface::matches

File

vendor/symfony/http-foundation/ChainRequestMatcher.php, line 28

Class

ChainRequestMatcher
ChainRequestMatcher verifies that all checks match against a Request instance.

Namespace

Symfony\Component\HttpFoundation

Code

public function matches(Request $request) : bool {
    foreach ($this->matchers as $matcher) {
        if (!$matcher->matches($request)) {
            return false;
        }
    }
    return true;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal