
| Current Path : /var/www/html/ift/web/core/lib/Drupal/Core/Routing/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/ift/web/core/lib/Drupal/Core/Routing/StackedRouteMatchInterface.php |
<?php
namespace Drupal\Core\Routing;
use Symfony\Component\HttpFoundation\Request;
/**
* Defines an interface for a stack of route matches.
*
* This could be for example used on exception pages.
*/
interface StackedRouteMatchInterface extends RouteMatchInterface {
/**
* Gets the current route match.
*
* @return \Drupal\Core\Routing\RouteMatchInterface
*/
public function getCurrentRouteMatch();
/**
* Gets the master route match..
*
* @return \Drupal\Core\Routing\RouteMatchInterface
*/
public function getMasterRouteMatch();
/**
* Returns the parent route match of the current.
*
* @return \Drupal\Core\Routing\RouteMatchInterface|null
* The parent route match or NULL, if it the master route match.
*/
public function getParentRouteMatch();
/**
* Returns a route match from a given request, if possible.
*
* @param \Symfony\Component\HttpFoundation\Request $request
* The request.
*
* @return \Drupal\Core\Routing\RouteMatchInterface|null
* The matching route match, or NULL if there is no matching one.
*/
public function getRouteMatchFromRequest(Request $request);
}