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::fromEntityUri

protected static Url::fromEntityUri(array $uri_parts, array $options, $uri) Create a new Url object for entity URIs. Parameters array $uri_parts: Parts from an URI of the form entity:{entity_type}/{entity_id} as from parse_url(). array $options: An array of options, see \Drupal\Core\Url::fromUri() for details. string $uri: The original entered URI. Return value \Drupal\Core\Url A new Url object for an entity's canonical route. Throws \InvalidArgumentException Thrown if the entity URI is inva

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::$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::$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::$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::$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();

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::$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::$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;