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

Breadcrumb

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

interface UrlMatcherInterface

UrlMatcherInterface is the interface that all URL matcher classes must implement.

@author Fabien Potencier <fabien@symfony.com>

Hierarchy

  • interface \Symfony\Component\Routing\RequestContextAwareInterface
    • interface \Symfony\Component\Routing\Matcher\UrlMatcherInterface extends \Symfony\Component\Routing\RequestContextAwareInterface

Expanded class hierarchy of UrlMatcherInterface

All classes that implement UrlMatcherInterface

7 files declare their use of UrlMatcherInterface
CustomPageExceptionHtmlSubscriber.php in core/lib/Drupal/Core/EventSubscriber/CustomPageExceptionHtmlSubscriber.php
DefaultExceptionHtmlSubscriber.php in core/lib/Drupal/Core/EventSubscriber/DefaultExceptionHtmlSubscriber.php
LanguageNegotiationUserAdmin.php in core/modules/user/src/Plugin/LanguageNegotiation/LanguageNegotiationUserAdmin.php
PathValidator.php in core/lib/Drupal/Core/Path/PathValidator.php
Router.php in vendor/symfony/routing/Router.php

... See full list

File

vendor/symfony/routing/Matcher/UrlMatcherInterface.php, line 24

Namespace

Symfony\Component\Routing\Matcher
View source
interface UrlMatcherInterface extends RequestContextAwareInterface {
    
    /**
     * Tries to match a URL path with a set of routes.
     *
     * If the matcher cannot find information, it must throw one of the exceptions documented
     * below.
     *
     * @param string $pathinfo The path info to be parsed (raw format, i.e. not urldecoded)
     *
     * @throws NoConfigurationException  If no routing configuration could be found
     * @throws ResourceNotFoundException If the resource could not be found
     * @throws MethodNotAllowedException If the resource was found but the request method is not allowed
     */
    public function match(string $pathinfo) : array;

}

Members

Title Sort descending Modifiers Object type Summary Overrides
RequestContextAwareInterface::getContext public function Gets the request context. 6
RequestContextAwareInterface::setContext public function Sets the request context. 6
UrlMatcherInterface::match public function Tries to match a URL path with a set of routes. 3

API Navigation

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