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