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

Breadcrumb

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

function QueryParameterRequestMatcher::__construct

Parameters

string[]|string $parameters A parameter or a list of parameters: Strings can contain a comma-delimited list of query parameters

File

vendor/symfony/http-foundation/RequestMatcher/QueryParameterRequestMatcher.php, line 33

Class

QueryParameterRequestMatcher
Checks the presence of HTTP query parameters of a Request.

Namespace

Symfony\Component\HttpFoundation\RequestMatcher

Code

public function __construct(array|string $parameters) {
    $this->parameters = array_reduce(array_map(strtolower(...), (array) $parameters), static fn(array $parameters, string $parameter) => array_merge($parameters, preg_split('/\\s*,\\s*/', $parameter)), []);
}

API Navigation

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