Url::createFromRequest

public static Url::createFromRequest(Request $request) Returns the Url object matching a request. SECURITY NOTE: The request path is not checked to be valid and accessible by the current user to allow storing and reusing Url objects by different users. The 'path.validator' service getUrlIfValid() method should be used instead of this one if validation and access check is desired. Otherwise, 'access_manager' service checkNamedRoute() method should be used on the router name and parameters stored

Url::accessManager

protected Url::accessManager() Return value \Drupal\Core\Access\AccessManagerInterface File core/lib/Drupal/Core/Url.php, line 812 Class Url Defines an object that holds information about a URL. Namespace Drupal\Core Code protected function accessManager() { if (!isset($this->accessManager)) { $this->accessManager = \Drupal::service('access_manager'); } return $this->accessManager; }

Url::access

public Url::access(AccountInterface $account = NULL) Checks this Url object against applicable access check services. Determines whether the route is accessible or not. Parameters \Drupal\Core\Session\AccountInterface $account: (optional) Run access checks for this account. Defaults to the current user. Return value bool Returns TRUE if the user has access to the url, otherwise FALSE. File core/lib/Drupal/Core/Url.php, line 789 Class Url Defines an object that holds information about a U

Url::$urlGenerator

The URL generator. Type: \Drupal\Core\Routing\UrlGeneratorInterface File core/lib/Drupal/Core/Url.php, line 25 Class Url Defines an object that holds information about a URL. Namespace Drupal\Core Code protected $urlGenerator;

Url::$urlAssembler

The unrouted URL assembler. Type: \Drupal\Core\Utility\UnroutedUrlAssemblerInterface File core/lib/Drupal/Core/Url.php, line 32 Class Url Defines an object that holds information about a URL. Namespace Drupal\Core Code protected $urlAssembler;

Url::$uri

The non-route URI. Only used if self::$unrouted is TRUE. Type: string File core/lib/Drupal/Core/Url.php, line 85 Class Url Defines an object that holds information about a URL. Namespace Drupal\Core Code protected $uri;

Url::$unrouted

Indicates whether this URL is for a URI without a Drupal route. Type: bool File core/lib/Drupal/Core/Url.php, line 76 Class Url Defines an object that holds information about a URL. Namespace Drupal\Core Code protected $unrouted = FALSE;

Url::$routeParameters

The route parameters. Type: array File core/lib/Drupal/Core/Url.php, line 53 Class Url Defines an object that holds information about a URL. Namespace Drupal\Core Code protected $routeParameters = array();

Url::$routeName

The route name. Type: string File core/lib/Drupal/Core/Url.php, line 46 Class Url Defines an object that holds information about a URL. Namespace Drupal\Core Code protected $routeName;

Url::$options

The URL options. See \Drupal\Core\Url::fromUri() for details on the options. Type: array File core/lib/Drupal/Core/Url.php, line 62 Class Url Defines an object that holds information about a URL. Namespace Drupal\Core Code protected $options = array();