Trouvez le bateau qu'il vous faut grâce à notre moteur de recherche

- → array(2)
- →'fr' => stdClass(2)
- →public links -> array(2)
- →'fr' => array(5)
- →'url' => Drupal\Core\Url(12)
- contents
- Available methods (36)
- protected urlGenerator -> NULL
- protected urlAssembler -> NULL
- protected accessManager -> NULL
- protected routeName -> string(21) "entity.node.canonical"
- protected routeParameters -> array(0)
- protected options -> array(0)
- protected external -> boolFALSE
- protected unrouted -> boolFALSE
- protected uri -> NULL
- protected internalPath -> NULL
- protected _serviceIds -> array(0)
- protected _entityStorages -> array(0)
- →public static createFromRequest(Symfony\Component\HttpFoundation\Request $request) -> static
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 in the Url object returned by this method. @param \Symfony\Component\HttpFoundation\Request $request A request object. @return static A Url object. Warning: the object is created even if the current user would get an access denied running the same request via the normal page flow. @throws \Drupal\Core\Routing\MatchingRouteNotFoundException Thrown when the request cannot be matched. Defined in <ROOT>core/lib/Drupal/Core/Url.php:476
- →public static fromRoute($route_name, $route_parameters = array(), $options = array()) -> \Drupal\Core\Url
Creates a new Url object for a URL that has a Drupal route. This method is for URLs that have Drupal routes (that is, most pages generated by Drupal). For non-routed local URIs relative to the base path (like robots.txt) use Url::fromUri() with the base: scheme. @param string $route_name The name of the route @param array $route_parameters (optional) An associative array of route parameter names and values. @param array $options See \Drupal\Core\Url::fromUri() for details. @return \Drupal\Core\Url A new Url object for a routed (internal to Drupal) URL. @see \Drupal\Core\Url::fromUserInput() @see \Drupal\Core\Url::fromUri() Defined in <ROOT>core/lib/Drupal/Core/Url.php:141
- →public static fromRouteMatch(Drupal\Core\Routing\RouteMatchInterface $route_match) -> $this
Creates a new URL object from a route match. @param \Drupal\Core\Routing\RouteMatchInterface $route_match The route match. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:153
- →public static fromUri($uri, $options = array()) -> \Drupal\Core\Url
Creates a new Url object from a URI. This method is for generating URLs for URIs that: - do not have Drupal routes: both external URLs and unrouted local URIs like base:robots.txt - do have a Drupal route but have a custom scheme to simplify linking. Currently, there is only the entity: scheme (This allows URIs of the form entity:{entity_type}/{entity_id}. For example: entity:node/1 resolves to the entity.node.canonical route with a node parameter of 1.) For URLs that have Drupal routes (that is, most pages generated by Drupal), use Url::fromRoute(). @param string $uri The URI of the resource including the scheme. For user input that may correspond to a Drupal route, use internal: for the scheme. For paths that are known not to be handled by the Drupal routing system (such as static files), use base: for the scheme to get a link relative to the Drupal base path (like the <base> HTML element). For a link to an entity you may use entity:{entity_type}/{entity_id} URIs. The internal: scheme should be avoided except when processing actual user input that may or may not correspond to a Drupal route. Normally use Url::fromRoute() for code linking to any any Drupal page. @param array $options (optional) An associative array of additional URL options, with the following elements: - 'query': An array of query key/value-pairs (without any URL-encoding) to append to the URL. - 'fragment': A fragment identifier (named anchor) to append to the URL. Do not include the leading '#' character. - 'absolute': Defaults to FALSE. Whether to force the output to be an absolute link (beginning with http:). Useful for links that will be displayed outside the site, such as in an RSS feed. - 'attributes': An associative array of HTML attributes that will be added to the anchor tag if you use the \Drupal\Core\Link class to make the link. - 'language': An optional language object used to look up the alias for the URL. If $options['language'] is omitted, it defaults to the current language for the language type LanguageInterface::TYPE_URL. - 'https': Whether this URL should point to a secure location. If not defined, the current scheme is used, so the user stays on HTTP or HTTPS respectively. TRUE enforces HTTPS and FALSE enforces HTTP. @return \Drupal\Core\Url A new Url object with properties depending on the URI scheme. Call the access() method on this to do access checking. @throws \InvalidArgumentException Thrown when the passed in path has no scheme. @see \Drupal\Core\Url::fromRoute() @see \Drupal\Core\Url::fromUserInput() Defined in <ROOT>core/lib/Drupal/Core/Url.php:266
- →public static fromUserInput($user_input, $options = array()) -> static
Creates a Url object for a relative URI reference submitted by user input. Use this method to create a URL for user-entered paths that may or may not correspond to a valid Drupal route. @param string $user_input User input for a link or path. The first character must be one of the following characters: - '/': A path within the current site. This path might be to a Drupal route (e.g., '/admin'), to a file (e.g., '/README.txt'), or to something processed by a non-Drupal script (e.g., '/not/a/drupal/page'). If the path matches a Drupal route, then the URL generation will include Drupal's path processors (e.g., language-prefixing and aliasing). Otherwise, the URL generation will just append the passed-in path to Drupal's base path. - '?': A query string for the current page or resource. - '#': A fragment (jump-link) on the current page or resource. This helps reduce ambiguity for user-entered links and paths, and supports user interfaces where users may normally use auto-completion to search for existing resources, but also may type one of these characters to link to (e.g.) a specific path on the site. (With regard to the URI specification, the user input is treated as a @link https://tools.ietf.org/html/rfc3986#section-4.2 relative URI reference @endlink where the relative part is of type @link https://tools.ietf.org/html/rfc3986#section-3.3 path-abempty @endlink.) @param array $options (optional) An array of options. See Url::fromUri() for details. @return static A new Url object based on user input. @throws \InvalidArgumentException Thrown when the user input does not begin with one of the following characters: '/', '?', or '#'. Defined in <ROOT>core/lib/Drupal/Core/Url.php:198
- →public static renderAccess(array $element) -> bool
Checks a Url render element against applicable access check services. @param array $element A render element as returned from \Drupal\Core\Url::toRenderArray(). @return bool Returns TRUE if the current user has access to the url, otherwise FALSE. Defined in <ROOT>core/lib/Drupal/Core/Url.php:823
- →public __construct($route_name, $route_parameters = array(), $options = array())
Constructs a new Url object. In most cases, use Url::fromRoute() or Url::fromUri() rather than constructing Url objects directly in order to avoid ambiguity and make your code more self-documenting. @param string $route_name The name of the route @param array $route_parameters (optional) An associative array of parameter names and values. @param array $options See \Drupal\Core\Url::fromUri() for details. @see static::fromRoute() @see static::fromUri() @todo Update this documentation for non-routed URIs in https://www.drupal.org/node/2346787 Defined in <ROOT>core/lib/Drupal/Core/Url.php:115
- →public __sleep()
{@inheritdoc} Defined in <ROOT>core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:30
- →public __wakeup()
{@inheritdoc} Defined in <ROOT>core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:65
- →public access(Drupal\Core\Session\AccountInterface $account = NULL) -> bool
Checks this Url object against applicable access check services. Determines whether the route is accessible or not. @param \Drupal\Core\Session\AccountInterface $account (optional) Run access checks for this account. Defaults to the current user. @return bool Returns TRUE if the user has access to the url, otherwise FALSE. Defined in <ROOT>core/lib/Drupal/Core/Url.php:807
- →public getInternalPath() -> string
Returns the internal path (system path) for this route. This path will not include any prefixes, fragments, or query strings. @return string The internal path for this route. @throws \UnexpectedValueException. If this is a URI with no corresponding system path. Defined in <ROOT>core/lib/Drupal/Core/Url.php:784
- →public getOption($name) -> mixed
Gets a specific option. See \Drupal\Core\Url::fromUri() for details on the options. @param string $name The name of the option. @return mixed The value for a specific option, or NULL if it does not exist. Defined in <ROOT>core/lib/Drupal/Core/Url.php:639
- →public getOptions() -> array
Returns the URL options. @return array The array of options. See \Drupal\Core\Url::fromUri() for details on what it contains. Defined in <ROOT>core/lib/Drupal/Core/Url.php:624
- →public getRouteName() -> string
Returns the route name. @return string @throws \UnexpectedValueException. If this is a URI with no corresponding route. Defined in <ROOT>core/lib/Drupal/Core/Url.php:553
- →public getRouteParameters() -> array
Returns the route parameters. @return array @throws \UnexpectedValueException. If this is a URI with no corresponding route. Defined in <ROOT>core/lib/Drupal/Core/Url.php:569
- →public getUri() -> string
Returns the URI value for this Url object. Only to be used if self::$unrouted is TRUE. @return string A URI not connected to a route. May be an external URL. @throws \UnexpectedValueException Thrown when the URI was requested for a routed URL. Defined in <ROOT>core/lib/Drupal/Core/Url.php:706
- →public isExternal() -> bool
Indicates if this Url is external. @return bool Defined in <ROOT>core/lib/Drupal/Core/Url.php:532
- →public isRouted() -> bool
Indicates if this Url has a Drupal route. @return bool Defined in <ROOT>core/lib/Drupal/Core/Url.php:541
- →public mergeOptions($options) -> $this
Merges the URL options with any currently set. In the case of conflict with existing options, the new options will replace the existing options. @param array $options The array of options. See \Drupal\Core\Url::fromUri() for details on what it contains. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:690
- →public setAbsolute($absolute = true) -> $this
Sets the value of the absolute option for this Url. @param bool $absolute (optional) Whether to make this Url absolute or not. Defaults to TRUE. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:722
- →public setOption($name, $value) -> $this
Sets a specific option. See \Drupal\Core\Url::fromUri() for details on the options. @param string $name The name of the option. @param mixed $value The option value. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:673
- →public setOptions($options) -> $this
Sets the URL options. @param array $options The array of options. See \Drupal\Core\Url::fromUri() for details on what it contains. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:656
- →public setRouteParameter($key, $value) -> $this
Sets a specific route parameter. @param string $key The key of the route parameter. @param mixed $value The route parameter. @return $this @throws \UnexpectedValueException. If this is a URI with no corresponding route. Defined in <ROOT>core/lib/Drupal/Core/Url.php:609
- →public setRouteParameters($parameters) -> $this
Sets the route parameters. @param array $parameters The array of parameters. @return $this @throws \UnexpectedValueException. If this is a URI with no corresponding route. Defined in <ROOT>core/lib/Drupal/Core/Url.php:588
- →public setUnroutedUrlAssembler(Drupal\Core\Utility\UnroutedUrlAssemblerInterface $url_assembler) -> $this
Sets the unrouted URL assembler. @param \Drupal\Core\Utility\UnroutedUrlAssemblerInterface $url_assembler The unrouted URL assembler. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:885
- →public setUrlGenerator(Drupal\Core\Routing\UrlGeneratorInterface $url_generator = NULL) -> $this
Sets the URL generator. @param \Drupal\Core\Routing\UrlGeneratorInterface $url_generator (optional) The URL generator, specify NULL to reset it. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:871
- →public toRenderArray() -> array
Returns the route information for a render array. @return array An associative array suitable for a render array. Defined in <ROOT>core/lib/Drupal/Core/Url.php:762
- →public toString($collect_bubbleable_metadata = false) -> string|\Drupal\Core\GeneratedUrl
Generates the string URL representation for this Url object. For an external URL, the string will contain the input plus any query string or fragment specified by the options array. If this Url object was constructed from a Drupal route or from an internal URI (URIs using the internal:, base:, or entity: schemes), the returned string will either be a relative URL like /node/1 or an absolute URL like http://example.com/node/1 depending on the options array, plus any specified query string or fragment. @param bool $collect_bubbleable_metadata (optional) Defaults to FALSE. When TRUE, both the generated URL and its associated bubbleable metadata are returned. @return string|\Drupal\Core\GeneratedUrl A string URL. When $collect_bubbleable_metadata is TRUE, a GeneratedUrl object is returned, containing the generated URL plus bubbleable metadata. Defined in <ROOT>core/lib/Drupal/Core/Url.php:748
- →public toUriString() -> string
Generates a URI string that represents the data in the Url object. The URI will typically have the scheme of route: even if the object was constructed using an entity: or internal: scheme. A internal: URI that does not match a Drupal route with be returned here with the base: scheme, and external URLs will be returned in their original form. @return string A URI representation of the Url object data. Defined in <ROOT>core/lib/Drupal/Core/Url.php:512
- →protected static fromEntityUri(array $uri_parts, array $options, $uri) -> \Drupal\Core\Url
Create a new Url object for entity URIs. @param array $uri_parts Parts from an URI of the form entity:{entity_type}/{entity_id} as from parse_url(). @param array $options An array of options, see \Drupal\Core\Url::fromUri() for details. @param string $uri The original entered URI. @return \Drupal\Core\Url A new Url object for an entity's canonical route. @throws \InvalidArgumentException Thrown if the entity URI is invalid. Defined in <ROOT>core/lib/Drupal/Core/Url.php:341
- →protected static fromInternalUri(array $uri_parts, array $options) -> \Drupal\Core\Url
Creates a new Url object for 'internal:' URIs. Important note: the URI minus the scheme can NOT simply be validated by a \Drupal\Core\Path\PathValidatorInterface implementation. The semantics of the 'internal:' URI scheme are different: - PathValidatorInterface accepts paths without a leading slash (e.g. 'node/add') as well as 2 special paths: '<front>' and '<none>', which are mapped to the correspondingly named routes. - 'internal:' URIs store paths with a leading slash that represents the root — i.e. the front page — (e.g. 'internal:/node/add'), and doesn't have any exceptions. To clarify, a few examples of path plus corresponding 'internal:' URI: - 'node/add' -> 'internal:/node/add' - 'node/add?foo=bar' -> 'internal:/node/add?foo=bar' - 'node/add#kitten' -> 'internal:/node/add#kitten' - '<front>' -> 'internal:/' - '<front>foo=bar' -> 'internal:/?foo=bar' - '<front>#kitten' -> 'internal:/#kitten' - '<none>' -> 'internal:' - '<none>foo=bar' -> 'internal:?foo=bar' - '<none>#kitten' -> 'internal:#kitten' Therefore, when using a PathValidatorInterface to validate 'internal:' URIs, we must map: - 'internal:' (path component is '') to the special '<none>' path - 'internal:/' (path component is '/') to the special '<front>' path - 'internal:/some-path' (path component is '/some-path') to 'some-path' @param array $uri_parts Parts from an URI of the form internal:{path} as from parse_url(). @param array $options An array of options, see \Drupal\Core\Url::fromUri() for details. @return \Drupal\Core\Url A new Url object for a 'internal:' URI. @throws \InvalidArgumentException Thrown when the URI's path component doesn't have a leading slash. Defined in <ROOT>core/lib/Drupal/Core/Url.php:391
- →protected static fromRouteUri(array $uri_parts, array $options, $uri) -> \Drupal\Core\Url
Creates a new Url object for 'route:' URIs. @param array $uri_parts Parts from an URI of the form route:{route_name};{route_parameters} as from parse_url(), where the path is the route name optionally followed by a ";" followed by route parameters in key=value format with & separators. @param array $options An array of options, see \Drupal\Core\Url::fromUri() for details. @param string $uri The original passed in URI. @return \Drupal\Core\Url A new Url object for a 'route:' URI. @throws \InvalidArgumentException Thrown when the route URI does not have a route name. Defined in <ROOT>core/lib/Drupal/Core/Url.php:440
- →protected accessManager() -> \Drupal\Core\Access\AccessManagerInterface
@return \Drupal\Core\Access\AccessManagerInterface Defined in <ROOT>core/lib/Drupal/Core/Url.php:830
- →protected setUnrouted() -> $this
Sets this Url to encapsulate an unrouted URI. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:490
- →protected unroutedUrlAssembler() -> \Drupal\Core\Utility\UnroutedUrlAssemblerInterface
Gets the unrouted URL assembler for non-Drupal URLs. @return \Drupal\Core\Utility\UnroutedUrlAssemblerInterface The unrouted URL assembler. Defined in <ROOT>core/lib/Drupal/Core/Url.php:856
- →protected urlGenerator() -> \Drupal\Core\Routing\UrlGeneratorInterface
Gets the URL generator. @return \Drupal\Core\Routing\UrlGeneratorInterface The URL generator. Defined in <ROOT>core/lib/Drupal/Core/Url.php:843
- 'title' => string UTF-8(8) "Français"
- →'language' => Drupal\language\Entity\ConfigurableLanguage(24)
- contents
- Available methods (98)
- Static class properties (14)
- protected id -> string(2) "fr"
- protected label -> string UTF-8(8) "Français"
- protected direction -> string(3) "ltr"
- protected weight -> integer0
- protected locked -> boolFALSE
- protected preSaveMultilingual -> NULL
- protected originalId -> string(2) "fr"
- protected status -> boolTRUE
- protected uuid -> string(36) "7bca2d09-7af5-4f40-b4af-c94b9c11694b"
- private isSyncing -> boolFALSE
- private isUninstalling -> boolFALSE
- protected langcode -> string(2) "fr"
- protected third_party_settings -> array(0)
- protected _core -> array(0)
- protected trustedData -> boolFALSE
- protected entityTypeId -> string(21) "configurable_language"
- protected enforceIsNew -> NULL
- protected typedData -> NULL
- →protected cacheContexts -> array(1)
- string(28) "languages:language_interface"
- protected cacheTags -> array(0)
- protected cacheMaxAge -> integer-1
- protected _serviceIds -> array(0)
- protected _entityStorages -> array(0)
- protected dependencies -> array(0)
- →public static create(array $values = array())
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:544
- →public static createFromLangcode($langcode) -> $this
Creates a configurable language object from a langcode. @param string $langcode The language code to use to create the object. @return $this @see \Drupal\Core\Language\LanguageManager::getStandardLanguageList() Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:244
- →public static load($id)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:524
- →public static loadMultiple(array $ids = NULL)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:534
- →public static postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities)
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:163
- →public static postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:475
- →public static preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:450
- →public static preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities)
{@inheritdoc} @throws \DeleteDefaultLanguageException Exception thrown if we're trying to delete the default language entity. This is not allowed as a site must have a default language. Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:151
- →public static sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b)
Helper callback for uasort() to sort configuration entities by weight and label. Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:251
- →public __construct(array $values, $entity_type)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:112
- →public __sleep()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:353
- →public __wakeup()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:65
- →public access($operation, Drupal\Core\Session\AccountInterface $account = NULL, $return_as_object = false)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:358
- →public addCacheContexts(array $cache_contexts)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:31
- →public addCacheTags(array $cache_tags)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:41
- →public addCacheableDependency($other_object)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- →public bundle()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:159
- →public calculateDependencies()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:379
- →public createDuplicate()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- →public delete()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:397
- →public disable()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:188
- →public enable()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:181
- →public enforceIsNew($value = true)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:143
- →public get($property_name)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:157
- →public getCacheContexts()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:488
- →public getCacheMaxAge()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:517
- →public getCacheTags()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:507
- →public getCacheTagsToInvalidate()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:439
- →public getConfigDependencyKey()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:646
- →public getConfigDependencyName()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:482
- →public getConfigTarget()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:489
- →public getDependencies()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:468
- →public getDirection()
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:215
- →public getEntityType()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:423
- →public getEntityTypeId()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:152
- →public getId()
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:208
- →public getName()
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:192
- →public getOriginalId()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:126
- →public getThirdPartyProviders()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:573
- →public getThirdPartySetting($module, $key, $default = NULL)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:541
- →public getThirdPartySettings($module)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:553
- →public getTypedData()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:627
- →public getWeight()
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:222
- →public hasLinkTemplate($rel)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:251
- →public hasTrustedData()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:629
- →public id()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:122
- →public isDefault()
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:95
- →public isInstallable()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:614
- →public isLocked()
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:102
- →public isNew()
Overrides Entity::isNew(). EntityInterface::enforceIsNew() is only supported for newly created configuration entities but has no effect after saving, since each configuration entity is unique. Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:150
- →public isSyncing()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:219
- →public isUninstalling()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:233
- →public label()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:166
- →public language()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:372
- →public link($text = NULL, $rel = edit-form, array $options = array())
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:422
- →public mergeCacheMaxAge($max_age)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:51
- →public onDependencyRemoval(array $dependencies)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:500
- →public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:456
- →public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true)
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:120
- →public preSave(Drupal\Core\Entity\EntityStorageInterface $storage)
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:109
- →public referencedEntities()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:481
- →public save()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:636
- →public set($property_name, $value)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:164
- →public setName($name)
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:199
- →public setOriginalId($id)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:133
- →public setStatus($status)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:195
- →public setSyncing($syncing)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:210
- →public setThirdPartySetting($module, $key, $value)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:533
- →public setUninstalling($uninstalling)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:226
- →public setWeight($weight)
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:229
- →public status()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:203
- →public toArray()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:265
- →public toLink($text = NULL, $rel = canonical, array $options = array())
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:276
- →public toUrl($rel = edit-form, array $options = array())
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:430
- →public traitSleep()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:30
- →public trustData()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:621
- →public unsetThirdPartySetting($module, $key)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:560
- →public uriRelationships()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:336
- →public url($rel = edit-form, $options = array())
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:414
- →public urlInfo($rel = edit-form, array $options = array())
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:405
- →public uuid()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:129
- →protected static getConfigManager() -> \Drupal\Core\Config\ConfigManager
Gets the configuration manager. @return \Drupal\Core\Config\ConfigManager The configuration manager. Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:607
- →protected static getDefaultLangcode() -> string
Gets the default langcode. @return string The current default langcode. Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:184
- →protected static invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities)
{@inheritdoc} Override to never invalidate the individual entities' cache tags; the config system already invalidates them. Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:526
- →protected addDependencies(array $dependencies)
Adds multiple dependencies. @param array $dependencies An array of dependencies keyed by the type of dependency. One example: @code array( 'module' => array( 'node', 'field', 'image', ), ); @endcode @see \Drupal\Core\Entity\DependencyTrait::addDependency Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- →protected addDependency($type, $name)
Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). Note that this function should only be called from implementations of \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), as dependencies are recalculated during every entity save. @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:454
- →protected addDependencyTrait($type, $name) -> $this
Adds a dependency. @param string $type Type of dependency being added: 'module', 'theme', 'config', 'content'. @param string $name If $type is 'module' or 'theme', the name of the module or theme. If $type is 'config' or 'content', the result of EntityInterface::getConfigDependencyName(). @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() @return $this Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- →protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance)
Calculates and adds dependencies of a specific plugin instance. Dependencies are added for the module that provides the plugin, as well as any dependencies declared by the instance's calculateDependencies() method, if it implements \Drupal\Component\Plugin\DependentPluginInterface. @param \Drupal\Component\Plugin\PluginInspectionInterface $instance The plugin instance. Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:29
- →protected entityManager() -> \Drupal\Core\Entity\EntityManagerInterface
Gets the entity manager. @return \Drupal\Core\Entity\EntityManagerInterface @deprecated in Drupal 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal::entityTypeManager() instead in most cases. If the needed method is not on \Drupal\Core\Entity\EntityTypeManagerInterface, see the deprecated \Drupal\Core\Entity\EntityManager to find the correct interface or service. Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:79
- →protected entityTypeBundleInfo() -> \Drupal\Core\Entity\EntityTypeBundleInfoInterface
Gets the entity type bundle info service. @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:97
- →protected entityTypeManager() -> \Drupal\Core\Entity\EntityTypeManagerInterface
Gets the entity type manager. @return \Drupal\Core\Entity\EntityTypeManagerInterface Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:88
- →protected getTypedConfig() -> \Drupal\Core\Config\TypedConfigManagerInterface
Gets the typed config manager. @return \Drupal\Core\Config\TypedConfigManagerInterface Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:306
- →protected invalidateTagsOnSave($update)
{@inheritdoc} Override to never invalidate the entity's cache tag; the config system already invalidates it. Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:516
- →protected languageManager() -> \Drupal\Core\Language\LanguageManagerInterface
Gets the language manager. @return \Drupal\Core\Language\LanguageManagerInterface Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:106
- →protected linkTemplates() -> array
Gets an array link templates. @return array An array of link templates containing paths. Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:262
- →protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability) -> $this
Sets cacheability; useful for value object constructors. @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability The cacheability to set. @return $this Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- →protected urlRouteParameters($rel) -> array
Gets an array of placeholders for this entity. Individual entity classes may override this method to add additional placeholders if desired. If so, they should be sure to replicate the property caching logic. @param string $rel The link relationship type, for example: canonical or edit-form. @return array An array of URI placeholders. Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:315
- →protected uuidGenerator() -> \Drupal\Component\Uuid\UuidInterface
Gets the UUID generator. @return \Drupal\Component\Uuid\UuidInterface Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:115
- constant LANGCODE_SYSTEM :: string(6) "system"
- constant LANGCODE_NOT_SPECIFIED :: string(3) "und"
- constant LANGCODE_NOT_APPLICABLE :: string(3) "zxx"
- constant LANGCODE_DEFAULT :: string(9) "x-default"
- constant LANGCODE_SITE_DEFAULT :: string(12) "site_default"
- constant STATE_CONFIGURABLE :: integer1
- constant STATE_LOCKED :: integer2
- constant STATE_ALL :: integer3
- constant STATE_SITE_DEFAULT :: integer4
- constant TYPE_CONTENT :: string(16) "language_content"
- constant TYPE_INTERFACE :: string(18) "language_interface"
- constant TYPE_URL :: string(12) "language_url"
- constant DIRECTION_LTR :: string(3) "ltr"
- constant DIRECTION_RTL :: string(3) "rtl"
- →'attributes' => array(1)
- →'class' => array(1)
- string(13) "language-link"
- 'query' => array(0)
- →'en' => array(5)
- →'url' => Drupal\Core\Url(12)
- contents
- Available methods (36)
- protected urlGenerator -> NULL
- protected urlAssembler -> NULL
- protected accessManager -> NULL
- protected routeName -> string(21) "entity.node.canonical"
- protected routeParameters -> array(0)
- protected options -> array(0)
- protected external -> boolFALSE
- protected unrouted -> boolFALSE
- protected uri -> NULL
- protected internalPath -> NULL
- protected _serviceIds -> array(0)
- protected _entityStorages -> array(0)
- →public static createFromRequest(Symfony\Component\HttpFoundation\Request $request) -> static
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 in the Url object returned by this method. @param \Symfony\Component\HttpFoundation\Request $request A request object. @return static A Url object. Warning: the object is created even if the current user would get an access denied running the same request via the normal page flow. @throws \Drupal\Core\Routing\MatchingRouteNotFoundException Thrown when the request cannot be matched. Defined in <ROOT>core/lib/Drupal/Core/Url.php:476
- →public static fromRoute($route_name, $route_parameters = array(), $options = array()) -> \Drupal\Core\Url
Creates a new Url object for a URL that has a Drupal route. This method is for URLs that have Drupal routes (that is, most pages generated by Drupal). For non-routed local URIs relative to the base path (like robots.txt) use Url::fromUri() with the base: scheme. @param string $route_name The name of the route @param array $route_parameters (optional) An associative array of route parameter names and values. @param array $options See \Drupal\Core\Url::fromUri() for details. @return \Drupal\Core\Url A new Url object for a routed (internal to Drupal) URL. @see \Drupal\Core\Url::fromUserInput() @see \Drupal\Core\Url::fromUri() Defined in <ROOT>core/lib/Drupal/Core/Url.php:141
- →public static fromRouteMatch(Drupal\Core\Routing\RouteMatchInterface $route_match) -> $this
Creates a new URL object from a route match. @param \Drupal\Core\Routing\RouteMatchInterface $route_match The route match. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:153
- →public static fromUri($uri, $options = array()) -> \Drupal\Core\Url
Creates a new Url object from a URI. This method is for generating URLs for URIs that: - do not have Drupal routes: both external URLs and unrouted local URIs like base:robots.txt - do have a Drupal route but have a custom scheme to simplify linking. Currently, there is only the entity: scheme (This allows URIs of the form entity:{entity_type}/{entity_id}. For example: entity:node/1 resolves to the entity.node.canonical route with a node parameter of 1.) For URLs that have Drupal routes (that is, most pages generated by Drupal), use Url::fromRoute(). @param string $uri The URI of the resource including the scheme. For user input that may correspond to a Drupal route, use internal: for the scheme. For paths that are known not to be handled by the Drupal routing system (such as static files), use base: for the scheme to get a link relative to the Drupal base path (like the <base> HTML element). For a link to an entity you may use entity:{entity_type}/{entity_id} URIs. The internal: scheme should be avoided except when processing actual user input that may or may not correspond to a Drupal route. Normally use Url::fromRoute() for code linking to any any Drupal page. @param array $options (optional) An associative array of additional URL options, with the following elements: - 'query': An array of query key/value-pairs (without any URL-encoding) to append to the URL. - 'fragment': A fragment identifier (named anchor) to append to the URL. Do not include the leading '#' character. - 'absolute': Defaults to FALSE. Whether to force the output to be an absolute link (beginning with http:). Useful for links that will be displayed outside the site, such as in an RSS feed. - 'attributes': An associative array of HTML attributes that will be added to the anchor tag if you use the \Drupal\Core\Link class to make the link. - 'language': An optional language object used to look up the alias for the URL. If $options['language'] is omitted, it defaults to the current language for the language type LanguageInterface::TYPE_URL. - 'https': Whether this URL should point to a secure location. If not defined, the current scheme is used, so the user stays on HTTP or HTTPS respectively. TRUE enforces HTTPS and FALSE enforces HTTP. @return \Drupal\Core\Url A new Url object with properties depending on the URI scheme. Call the access() method on this to do access checking. @throws \InvalidArgumentException Thrown when the passed in path has no scheme. @see \Drupal\Core\Url::fromRoute() @see \Drupal\Core\Url::fromUserInput() Defined in <ROOT>core/lib/Drupal/Core/Url.php:266
- →public static fromUserInput($user_input, $options = array()) -> static
Creates a Url object for a relative URI reference submitted by user input. Use this method to create a URL for user-entered paths that may or may not correspond to a valid Drupal route. @param string $user_input User input for a link or path. The first character must be one of the following characters: - '/': A path within the current site. This path might be to a Drupal route (e.g., '/admin'), to a file (e.g., '/README.txt'), or to something processed by a non-Drupal script (e.g., '/not/a/drupal/page'). If the path matches a Drupal route, then the URL generation will include Drupal's path processors (e.g., language-prefixing and aliasing). Otherwise, the URL generation will just append the passed-in path to Drupal's base path. - '?': A query string for the current page or resource. - '#': A fragment (jump-link) on the current page or resource. This helps reduce ambiguity for user-entered links and paths, and supports user interfaces where users may normally use auto-completion to search for existing resources, but also may type one of these characters to link to (e.g.) a specific path on the site. (With regard to the URI specification, the user input is treated as a @link https://tools.ietf.org/html/rfc3986#section-4.2 relative URI reference @endlink where the relative part is of type @link https://tools.ietf.org/html/rfc3986#section-3.3 path-abempty @endlink.) @param array $options (optional) An array of options. See Url::fromUri() for details. @return static A new Url object based on user input. @throws \InvalidArgumentException Thrown when the user input does not begin with one of the following characters: '/', '?', or '#'. Defined in <ROOT>core/lib/Drupal/Core/Url.php:198
- →public static renderAccess(array $element) -> bool
Checks a Url render element against applicable access check services. @param array $element A render element as returned from \Drupal\Core\Url::toRenderArray(). @return bool Returns TRUE if the current user has access to the url, otherwise FALSE. Defined in <ROOT>core/lib/Drupal/Core/Url.php:823
- →public __construct($route_name, $route_parameters = array(), $options = array())
Constructs a new Url object. In most cases, use Url::fromRoute() or Url::fromUri() rather than constructing Url objects directly in order to avoid ambiguity and make your code more self-documenting. @param string $route_name The name of the route @param array $route_parameters (optional) An associative array of parameter names and values. @param array $options See \Drupal\Core\Url::fromUri() for details. @see static::fromRoute() @see static::fromUri() @todo Update this documentation for non-routed URIs in https://www.drupal.org/node/2346787 Defined in <ROOT>core/lib/Drupal/Core/Url.php:115
- →public __sleep()
{@inheritdoc} Defined in <ROOT>core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:30
- →public __wakeup()
{@inheritdoc} Defined in <ROOT>core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:65
- →public access(Drupal\Core\Session\AccountInterface $account = NULL) -> bool
Checks this Url object against applicable access check services. Determines whether the route is accessible or not. @param \Drupal\Core\Session\AccountInterface $account (optional) Run access checks for this account. Defaults to the current user. @return bool Returns TRUE if the user has access to the url, otherwise FALSE. Defined in <ROOT>core/lib/Drupal/Core/Url.php:807
- →public getInternalPath() -> string
Returns the internal path (system path) for this route. This path will not include any prefixes, fragments, or query strings. @return string The internal path for this route. @throws \UnexpectedValueException. If this is a URI with no corresponding system path. Defined in <ROOT>core/lib/Drupal/Core/Url.php:784
- →public getOption($name) -> mixed
Gets a specific option. See \Drupal\Core\Url::fromUri() for details on the options. @param string $name The name of the option. @return mixed The value for a specific option, or NULL if it does not exist. Defined in <ROOT>core/lib/Drupal/Core/Url.php:639
- →public getOptions() -> array
Returns the URL options. @return array The array of options. See \Drupal\Core\Url::fromUri() for details on what it contains. Defined in <ROOT>core/lib/Drupal/Core/Url.php:624
- →public getRouteName() -> string
Returns the route name. @return string @throws \UnexpectedValueException. If this is a URI with no corresponding route. Defined in <ROOT>core/lib/Drupal/Core/Url.php:553
- →public getRouteParameters() -> array
Returns the route parameters. @return array @throws \UnexpectedValueException. If this is a URI with no corresponding route. Defined in <ROOT>core/lib/Drupal/Core/Url.php:569
- →public getUri() -> string
Returns the URI value for this Url object. Only to be used if self::$unrouted is TRUE. @return string A URI not connected to a route. May be an external URL. @throws \UnexpectedValueException Thrown when the URI was requested for a routed URL. Defined in <ROOT>core/lib/Drupal/Core/Url.php:706
- →public isExternal() -> bool
Indicates if this Url is external. @return bool Defined in <ROOT>core/lib/Drupal/Core/Url.php:532
- →public isRouted() -> bool
Indicates if this Url has a Drupal route. @return bool Defined in <ROOT>core/lib/Drupal/Core/Url.php:541
- →public mergeOptions($options) -> $this
Merges the URL options with any currently set. In the case of conflict with existing options, the new options will replace the existing options. @param array $options The array of options. See \Drupal\Core\Url::fromUri() for details on what it contains. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:690
- →public setAbsolute($absolute = true) -> $this
Sets the value of the absolute option for this Url. @param bool $absolute (optional) Whether to make this Url absolute or not. Defaults to TRUE. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:722
- →public setOption($name, $value) -> $this
Sets a specific option. See \Drupal\Core\Url::fromUri() for details on the options. @param string $name The name of the option. @param mixed $value The option value. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:673
- →public setOptions($options) -> $this
Sets the URL options. @param array $options The array of options. See \Drupal\Core\Url::fromUri() for details on what it contains. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:656
- →public setRouteParameter($key, $value) -> $this
Sets a specific route parameter. @param string $key The key of the route parameter. @param mixed $value The route parameter. @return $this @throws \UnexpectedValueException. If this is a URI with no corresponding route. Defined in <ROOT>core/lib/Drupal/Core/Url.php:609
- →public setRouteParameters($parameters) -> $this
Sets the route parameters. @param array $parameters The array of parameters. @return $this @throws \UnexpectedValueException. If this is a URI with no corresponding route. Defined in <ROOT>core/lib/Drupal/Core/Url.php:588
- →public setUnroutedUrlAssembler(Drupal\Core\Utility\UnroutedUrlAssemblerInterface $url_assembler) -> $this
Sets the unrouted URL assembler. @param \Drupal\Core\Utility\UnroutedUrlAssemblerInterface $url_assembler The unrouted URL assembler. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:885
- →public setUrlGenerator(Drupal\Core\Routing\UrlGeneratorInterface $url_generator = NULL) -> $this
Sets the URL generator. @param \Drupal\Core\Routing\UrlGeneratorInterface $url_generator (optional) The URL generator, specify NULL to reset it. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:871
- →public toRenderArray() -> array
Returns the route information for a render array. @return array An associative array suitable for a render array. Defined in <ROOT>core/lib/Drupal/Core/Url.php:762
- →public toString($collect_bubbleable_metadata = false) -> string|\Drupal\Core\GeneratedUrl
Generates the string URL representation for this Url object. For an external URL, the string will contain the input plus any query string or fragment specified by the options array. If this Url object was constructed from a Drupal route or from an internal URI (URIs using the internal:, base:, or entity: schemes), the returned string will either be a relative URL like /node/1 or an absolute URL like http://example.com/node/1 depending on the options array, plus any specified query string or fragment. @param bool $collect_bubbleable_metadata (optional) Defaults to FALSE. When TRUE, both the generated URL and its associated bubbleable metadata are returned. @return string|\Drupal\Core\GeneratedUrl A string URL. When $collect_bubbleable_metadata is TRUE, a GeneratedUrl object is returned, containing the generated URL plus bubbleable metadata. Defined in <ROOT>core/lib/Drupal/Core/Url.php:748
- →public toUriString() -> string
Generates a URI string that represents the data in the Url object. The URI will typically have the scheme of route: even if the object was constructed using an entity: or internal: scheme. A internal: URI that does not match a Drupal route with be returned here with the base: scheme, and external URLs will be returned in their original form. @return string A URI representation of the Url object data. Defined in <ROOT>core/lib/Drupal/Core/Url.php:512
- →protected static fromEntityUri(array $uri_parts, array $options, $uri) -> \Drupal\Core\Url
Create a new Url object for entity URIs. @param array $uri_parts Parts from an URI of the form entity:{entity_type}/{entity_id} as from parse_url(). @param array $options An array of options, see \Drupal\Core\Url::fromUri() for details. @param string $uri The original entered URI. @return \Drupal\Core\Url A new Url object for an entity's canonical route. @throws \InvalidArgumentException Thrown if the entity URI is invalid. Defined in <ROOT>core/lib/Drupal/Core/Url.php:341
- →protected static fromInternalUri(array $uri_parts, array $options) -> \Drupal\Core\Url
Creates a new Url object for 'internal:' URIs. Important note: the URI minus the scheme can NOT simply be validated by a \Drupal\Core\Path\PathValidatorInterface implementation. The semantics of the 'internal:' URI scheme are different: - PathValidatorInterface accepts paths without a leading slash (e.g. 'node/add') as well as 2 special paths: '<front>' and '<none>', which are mapped to the correspondingly named routes. - 'internal:' URIs store paths with a leading slash that represents the root — i.e. the front page — (e.g. 'internal:/node/add'), and doesn't have any exceptions. To clarify, a few examples of path plus corresponding 'internal:' URI: - 'node/add' -> 'internal:/node/add' - 'node/add?foo=bar' -> 'internal:/node/add?foo=bar' - 'node/add#kitten' -> 'internal:/node/add#kitten' - '<front>' -> 'internal:/' - '<front>foo=bar' -> 'internal:/?foo=bar' - '<front>#kitten' -> 'internal:/#kitten' - '<none>' -> 'internal:' - '<none>foo=bar' -> 'internal:?foo=bar' - '<none>#kitten' -> 'internal:#kitten' Therefore, when using a PathValidatorInterface to validate 'internal:' URIs, we must map: - 'internal:' (path component is '') to the special '<none>' path - 'internal:/' (path component is '/') to the special '<front>' path - 'internal:/some-path' (path component is '/some-path') to 'some-path' @param array $uri_parts Parts from an URI of the form internal:{path} as from parse_url(). @param array $options An array of options, see \Drupal\Core\Url::fromUri() for details. @return \Drupal\Core\Url A new Url object for a 'internal:' URI. @throws \InvalidArgumentException Thrown when the URI's path component doesn't have a leading slash. Defined in <ROOT>core/lib/Drupal/Core/Url.php:391
- →protected static fromRouteUri(array $uri_parts, array $options, $uri) -> \Drupal\Core\Url
Creates a new Url object for 'route:' URIs. @param array $uri_parts Parts from an URI of the form route:{route_name};{route_parameters} as from parse_url(), where the path is the route name optionally followed by a ";" followed by route parameters in key=value format with & separators. @param array $options An array of options, see \Drupal\Core\Url::fromUri() for details. @param string $uri The original passed in URI. @return \Drupal\Core\Url A new Url object for a 'route:' URI. @throws \InvalidArgumentException Thrown when the route URI does not have a route name. Defined in <ROOT>core/lib/Drupal/Core/Url.php:440
- →protected accessManager() -> \Drupal\Core\Access\AccessManagerInterface
@return \Drupal\Core\Access\AccessManagerInterface Defined in <ROOT>core/lib/Drupal/Core/Url.php:830
- →protected setUnrouted() -> $this
Sets this Url to encapsulate an unrouted URI. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:490
- →protected unroutedUrlAssembler() -> \Drupal\Core\Utility\UnroutedUrlAssemblerInterface
Gets the unrouted URL assembler for non-Drupal URLs. @return \Drupal\Core\Utility\UnroutedUrlAssemblerInterface The unrouted URL assembler. Defined in <ROOT>core/lib/Drupal/Core/Url.php:856
- →protected urlGenerator() -> \Drupal\Core\Routing\UrlGeneratorInterface
Gets the URL generator. @return \Drupal\Core\Routing\UrlGeneratorInterface The URL generator. Defined in <ROOT>core/lib/Drupal/Core/Url.php:843
- 'title' => string(7) "English"
- →'language' => Drupal\language\Entity\ConfigurableLanguage(24)
- contents
- Available methods (98)
- Static class properties (14)
- protected id -> string(2) "en"
- protected label -> string(7) "English"
- protected direction -> string(3) "ltr"
- protected weight -> integer1
- protected locked -> boolFALSE
- protected preSaveMultilingual -> NULL
- protected originalId -> string(2) "en"
- protected status -> boolTRUE
- protected uuid -> string(36) "487b487a-2d5e-4da2-879a-30952f742c08"
- private isSyncing -> boolFALSE
- private isUninstalling -> boolFALSE
- protected langcode -> string(2) "fr"
- protected third_party_settings -> array(0)
- protected _core -> array(0)
- protected trustedData -> boolFALSE
- protected entityTypeId -> string(21) "configurable_language"
- protected enforceIsNew -> NULL
- protected typedData -> NULL
- →protected cacheContexts -> array(1)
- string(28) "languages:language_interface"
- protected cacheTags -> array(0)
- protected cacheMaxAge -> integer-1
- protected _serviceIds -> array(0)
- protected _entityStorages -> array(0)
- protected dependencies -> array(0)
- →public static create(array $values = array())
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:544
- →public static createFromLangcode($langcode) -> $this
Creates a configurable language object from a langcode. @param string $langcode The language code to use to create the object. @return $this @see \Drupal\Core\Language\LanguageManager::getStandardLanguageList() Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:244
- →public static load($id)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:524
- →public static loadMultiple(array $ids = NULL)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:534
- →public static postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities)
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:163
- →public static postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:475
- →public static preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:450
- →public static preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities)
{@inheritdoc} @throws \DeleteDefaultLanguageException Exception thrown if we're trying to delete the default language entity. This is not allowed as a site must have a default language. Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:151
- →public static sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b)
Helper callback for uasort() to sort configuration entities by weight and label. Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:251
- →public __construct(array $values, $entity_type)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:112
- →public __sleep()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:353
- →public __wakeup()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:65
- →public access($operation, Drupal\Core\Session\AccountInterface $account = NULL, $return_as_object = false)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:358
- →public addCacheContexts(array $cache_contexts)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:31
- →public addCacheTags(array $cache_tags)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:41
- →public addCacheableDependency($other_object)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- →public bundle()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:159
- →public calculateDependencies()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:379
- →public createDuplicate()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- →public delete()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:397
- →public disable()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:188
- →public enable()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:181
- →public enforceIsNew($value = true)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:143
- →public get($property_name)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:157
- →public getCacheContexts()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:488
- →public getCacheMaxAge()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:517
- →public getCacheTags()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:507
- →public getCacheTagsToInvalidate()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:439
- →public getConfigDependencyKey()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:646
- →public getConfigDependencyName()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:482
- →public getConfigTarget()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:489
- →public getDependencies()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:468
- →public getDirection()
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:215
- →public getEntityType()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:423
- →public getEntityTypeId()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:152
- →public getId()
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:208
- →public getName()
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:192
- →public getOriginalId()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:126
- →public getThirdPartyProviders()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:573
- →public getThirdPartySetting($module, $key, $default = NULL)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:541
- →public getThirdPartySettings($module)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:553
- →public getTypedData()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:627
- →public getWeight()
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:222
- →public hasLinkTemplate($rel)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:251
- →public hasTrustedData()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:629
- →public id()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:122
- →public isDefault()
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:95
- →public isInstallable()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:614
- →public isLocked()
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:102
- →public isNew()
Overrides Entity::isNew(). EntityInterface::enforceIsNew() is only supported for newly created configuration entities but has no effect after saving, since each configuration entity is unique. Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:150
- →public isSyncing()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:219
- →public isUninstalling()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:233
- →public label()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:166
- →public language()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:372
- →public link($text = NULL, $rel = edit-form, array $options = array())
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:422
- →public mergeCacheMaxAge($max_age)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:51
- →public onDependencyRemoval(array $dependencies)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:500
- →public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:456
- →public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true)
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:120
- →public preSave(Drupal\Core\Entity\EntityStorageInterface $storage)
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:109
- →public referencedEntities()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:481
- →public save()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:636
- →public set($property_name, $value)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:164
- →public setName($name)
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:199
- →public setOriginalId($id)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:133
- →public setStatus($status)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:195
- →public setSyncing($syncing)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:210
- →public setThirdPartySetting($module, $key, $value)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:533
- →public setUninstalling($uninstalling)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:226
- →public setWeight($weight)
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:229
- →public status()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:203
- →public toArray()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:265
- →public toLink($text = NULL, $rel = canonical, array $options = array())
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:276
- →public toUrl($rel = edit-form, array $options = array())
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:430
- →public traitSleep()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:30
- →public trustData()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:621
- →public unsetThirdPartySetting($module, $key)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:560
- →public uriRelationships()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:336
- →public url($rel = edit-form, $options = array())
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:414
- →public urlInfo($rel = edit-form, array $options = array())
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:405
- →public uuid()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:129
- →protected static getConfigManager() -> \Drupal\Core\Config\ConfigManager
Gets the configuration manager. @return \Drupal\Core\Config\ConfigManager The configuration manager. Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:607
- →protected static getDefaultLangcode() -> string
Gets the default langcode. @return string The current default langcode. Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:184
- →protected static invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities)
{@inheritdoc} Override to never invalidate the individual entities' cache tags; the config system already invalidates them. Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:526
- →protected addDependencies(array $dependencies)
Adds multiple dependencies. @param array $dependencies An array of dependencies keyed by the type of dependency. One example: @code array( 'module' => array( 'node', 'field', 'image', ), ); @endcode @see \Drupal\Core\Entity\DependencyTrait::addDependency Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- →protected addDependency($type, $name)
Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). Note that this function should only be called from implementations of \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), as dependencies are recalculated during every entity save. @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:454
- →protected addDependencyTrait($type, $name) -> $this
Adds a dependency. @param string $type Type of dependency being added: 'module', 'theme', 'config', 'content'. @param string $name If $type is 'module' or 'theme', the name of the module or theme. If $type is 'config' or 'content', the result of EntityInterface::getConfigDependencyName(). @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() @return $this Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- →protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance)
Calculates and adds dependencies of a specific plugin instance. Dependencies are added for the module that provides the plugin, as well as any dependencies declared by the instance's calculateDependencies() method, if it implements \Drupal\Component\Plugin\DependentPluginInterface. @param \Drupal\Component\Plugin\PluginInspectionInterface $instance The plugin instance. Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:29
- →protected entityManager() -> \Drupal\Core\Entity\EntityManagerInterface
Gets the entity manager. @return \Drupal\Core\Entity\EntityManagerInterface @deprecated in Drupal 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal::entityTypeManager() instead in most cases. If the needed method is not on \Drupal\Core\Entity\EntityTypeManagerInterface, see the deprecated \Drupal\Core\Entity\EntityManager to find the correct interface or service. Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:79
- →protected entityTypeBundleInfo() -> \Drupal\Core\Entity\EntityTypeBundleInfoInterface
Gets the entity type bundle info service. @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:97
- →protected entityTypeManager() -> \Drupal\Core\Entity\EntityTypeManagerInterface
Gets the entity type manager. @return \Drupal\Core\Entity\EntityTypeManagerInterface Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:88
- →protected getTypedConfig() -> \Drupal\Core\Config\TypedConfigManagerInterface
Gets the typed config manager. @return \Drupal\Core\Config\TypedConfigManagerInterface Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:306
- →protected invalidateTagsOnSave($update)
{@inheritdoc} Override to never invalidate the entity's cache tag; the config system already invalidates it. Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:516
- →protected languageManager() -> \Drupal\Core\Language\LanguageManagerInterface
Gets the language manager. @return \Drupal\Core\Language\LanguageManagerInterface Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:106
- →protected linkTemplates() -> array
Gets an array link templates. @return array An array of link templates containing paths. Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:262
- →protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability) -> $this
Sets cacheability; useful for value object constructors. @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability The cacheability to set. @return $this Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- →protected urlRouteParameters($rel) -> array
Gets an array of placeholders for this entity. Individual entity classes may override this method to add additional placeholders if desired. If so, they should be sure to replicate the property caching logic. @param string $rel The link relationship type, for example: canonical or edit-form. @return array An array of URI placeholders. Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:315
- →protected uuidGenerator() -> \Drupal\Component\Uuid\UuidInterface
Gets the UUID generator. @return \Drupal\Component\Uuid\UuidInterface Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:115
- constant LANGCODE_SYSTEM :: string(6) "system"
- constant LANGCODE_NOT_SPECIFIED :: string(3) "und"
- constant LANGCODE_NOT_APPLICABLE :: string(3) "zxx"
- constant LANGCODE_DEFAULT :: string(9) "x-default"
- constant LANGCODE_SITE_DEFAULT :: string(12) "site_default"
- constant STATE_CONFIGURABLE :: integer1
- constant STATE_LOCKED :: integer2
- constant STATE_ALL :: integer3
- constant STATE_SITE_DEFAULT :: integer4
- constant TYPE_CONTENT :: string(16) "language_content"
- constant TYPE_INTERFACE :: string(18) "language_interface"
- constant TYPE_URL :: string(12) "language_url"
- constant DIRECTION_LTR :: string(3) "ltr"
- constant DIRECTION_RTL :: string(3) "rtl"
- →'attributes' => array(1)
- →'class' => array(1)
- string(13) "language-link"
- 'query' => array(0)
- public method_id -> string(12) "language-url"
- →'en' => stdClass(2)
- →public links -> array(2)
- →'fr' => array(5)
- →'url' => Drupal\Core\Url(12)
- contents
- Available methods (36)
- protected urlGenerator -> NULL
- protected urlAssembler -> NULL
- protected accessManager -> NULL
- protected routeName -> string(21) "entity.node.canonical"
- protected routeParameters -> array(0)
- protected options -> array(0)
- protected external -> boolFALSE
- protected unrouted -> boolFALSE
- protected uri -> NULL
- protected internalPath -> NULL
- protected _serviceIds -> array(0)
- protected _entityStorages -> array(0)
- →public static createFromRequest(Symfony\Component\HttpFoundation\Request $request) -> static
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 in the Url object returned by this method. @param \Symfony\Component\HttpFoundation\Request $request A request object. @return static A Url object. Warning: the object is created even if the current user would get an access denied running the same request via the normal page flow. @throws \Drupal\Core\Routing\MatchingRouteNotFoundException Thrown when the request cannot be matched. Defined in <ROOT>core/lib/Drupal/Core/Url.php:476
- →public static fromRoute($route_name, $route_parameters = array(), $options = array()) -> \Drupal\Core\Url
Creates a new Url object for a URL that has a Drupal route. This method is for URLs that have Drupal routes (that is, most pages generated by Drupal). For non-routed local URIs relative to the base path (like robots.txt) use Url::fromUri() with the base: scheme. @param string $route_name The name of the route @param array $route_parameters (optional) An associative array of route parameter names and values. @param array $options See \Drupal\Core\Url::fromUri() for details. @return \Drupal\Core\Url A new Url object for a routed (internal to Drupal) URL. @see \Drupal\Core\Url::fromUserInput() @see \Drupal\Core\Url::fromUri() Defined in <ROOT>core/lib/Drupal/Core/Url.php:141
- →public static fromRouteMatch(Drupal\Core\Routing\RouteMatchInterface $route_match) -> $this
Creates a new URL object from a route match. @param \Drupal\Core\Routing\RouteMatchInterface $route_match The route match. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:153
- →public static fromUri($uri, $options = array()) -> \Drupal\Core\Url
Creates a new Url object from a URI. This method is for generating URLs for URIs that: - do not have Drupal routes: both external URLs and unrouted local URIs like base:robots.txt - do have a Drupal route but have a custom scheme to simplify linking. Currently, there is only the entity: scheme (This allows URIs of the form entity:{entity_type}/{entity_id}. For example: entity:node/1 resolves to the entity.node.canonical route with a node parameter of 1.) For URLs that have Drupal routes (that is, most pages generated by Drupal), use Url::fromRoute(). @param string $uri The URI of the resource including the scheme. For user input that may correspond to a Drupal route, use internal: for the scheme. For paths that are known not to be handled by the Drupal routing system (such as static files), use base: for the scheme to get a link relative to the Drupal base path (like the <base> HTML element). For a link to an entity you may use entity:{entity_type}/{entity_id} URIs. The internal: scheme should be avoided except when processing actual user input that may or may not correspond to a Drupal route. Normally use Url::fromRoute() for code linking to any any Drupal page. @param array $options (optional) An associative array of additional URL options, with the following elements: - 'query': An array of query key/value-pairs (without any URL-encoding) to append to the URL. - 'fragment': A fragment identifier (named anchor) to append to the URL. Do not include the leading '#' character. - 'absolute': Defaults to FALSE. Whether to force the output to be an absolute link (beginning with http:). Useful for links that will be displayed outside the site, such as in an RSS feed. - 'attributes': An associative array of HTML attributes that will be added to the anchor tag if you use the \Drupal\Core\Link class to make the link. - 'language': An optional language object used to look up the alias for the URL. If $options['language'] is omitted, it defaults to the current language for the language type LanguageInterface::TYPE_URL. - 'https': Whether this URL should point to a secure location. If not defined, the current scheme is used, so the user stays on HTTP or HTTPS respectively. TRUE enforces HTTPS and FALSE enforces HTTP. @return \Drupal\Core\Url A new Url object with properties depending on the URI scheme. Call the access() method on this to do access checking. @throws \InvalidArgumentException Thrown when the passed in path has no scheme. @see \Drupal\Core\Url::fromRoute() @see \Drupal\Core\Url::fromUserInput() Defined in <ROOT>core/lib/Drupal/Core/Url.php:266
- →public static fromUserInput($user_input, $options = array()) -> static
Creates a Url object for a relative URI reference submitted by user input. Use this method to create a URL for user-entered paths that may or may not correspond to a valid Drupal route. @param string $user_input User input for a link or path. The first character must be one of the following characters: - '/': A path within the current site. This path might be to a Drupal route (e.g., '/admin'), to a file (e.g., '/README.txt'), or to something processed by a non-Drupal script (e.g., '/not/a/drupal/page'). If the path matches a Drupal route, then the URL generation will include Drupal's path processors (e.g., language-prefixing and aliasing). Otherwise, the URL generation will just append the passed-in path to Drupal's base path. - '?': A query string for the current page or resource. - '#': A fragment (jump-link) on the current page or resource. This helps reduce ambiguity for user-entered links and paths, and supports user interfaces where users may normally use auto-completion to search for existing resources, but also may type one of these characters to link to (e.g.) a specific path on the site. (With regard to the URI specification, the user input is treated as a @link https://tools.ietf.org/html/rfc3986#section-4.2 relative URI reference @endlink where the relative part is of type @link https://tools.ietf.org/html/rfc3986#section-3.3 path-abempty @endlink.) @param array $options (optional) An array of options. See Url::fromUri() for details. @return static A new Url object based on user input. @throws \InvalidArgumentException Thrown when the user input does not begin with one of the following characters: '/', '?', or '#'. Defined in <ROOT>core/lib/Drupal/Core/Url.php:198
- →public static renderAccess(array $element) -> bool
Checks a Url render element against applicable access check services. @param array $element A render element as returned from \Drupal\Core\Url::toRenderArray(). @return bool Returns TRUE if the current user has access to the url, otherwise FALSE. Defined in <ROOT>core/lib/Drupal/Core/Url.php:823
- →public __construct($route_name, $route_parameters = array(), $options = array())
Constructs a new Url object. In most cases, use Url::fromRoute() or Url::fromUri() rather than constructing Url objects directly in order to avoid ambiguity and make your code more self-documenting. @param string $route_name The name of the route @param array $route_parameters (optional) An associative array of parameter names and values. @param array $options See \Drupal\Core\Url::fromUri() for details. @see static::fromRoute() @see static::fromUri() @todo Update this documentation for non-routed URIs in https://www.drupal.org/node/2346787 Defined in <ROOT>core/lib/Drupal/Core/Url.php:115
- →public __sleep()
{@inheritdoc} Defined in <ROOT>core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:30
- →public __wakeup()
{@inheritdoc} Defined in <ROOT>core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:65
- →public access(Drupal\Core\Session\AccountInterface $account = NULL) -> bool
Checks this Url object against applicable access check services. Determines whether the route is accessible or not. @param \Drupal\Core\Session\AccountInterface $account (optional) Run access checks for this account. Defaults to the current user. @return bool Returns TRUE if the user has access to the url, otherwise FALSE. Defined in <ROOT>core/lib/Drupal/Core/Url.php:807
- →public getInternalPath() -> string
Returns the internal path (system path) for this route. This path will not include any prefixes, fragments, or query strings. @return string The internal path for this route. @throws \UnexpectedValueException. If this is a URI with no corresponding system path. Defined in <ROOT>core/lib/Drupal/Core/Url.php:784
- →public getOption($name) -> mixed
Gets a specific option. See \Drupal\Core\Url::fromUri() for details on the options. @param string $name The name of the option. @return mixed The value for a specific option, or NULL if it does not exist. Defined in <ROOT>core/lib/Drupal/Core/Url.php:639
- →public getOptions() -> array
Returns the URL options. @return array The array of options. See \Drupal\Core\Url::fromUri() for details on what it contains. Defined in <ROOT>core/lib/Drupal/Core/Url.php:624
- →public getRouteName() -> string
Returns the route name. @return string @throws \UnexpectedValueException. If this is a URI with no corresponding route. Defined in <ROOT>core/lib/Drupal/Core/Url.php:553
- →public getRouteParameters() -> array
Returns the route parameters. @return array @throws \UnexpectedValueException. If this is a URI with no corresponding route. Defined in <ROOT>core/lib/Drupal/Core/Url.php:569
- →public getUri() -> string
Returns the URI value for this Url object. Only to be used if self::$unrouted is TRUE. @return string A URI not connected to a route. May be an external URL. @throws \UnexpectedValueException Thrown when the URI was requested for a routed URL. Defined in <ROOT>core/lib/Drupal/Core/Url.php:706
- →public isExternal() -> bool
Indicates if this Url is external. @return bool Defined in <ROOT>core/lib/Drupal/Core/Url.php:532
- →public isRouted() -> bool
Indicates if this Url has a Drupal route. @return bool Defined in <ROOT>core/lib/Drupal/Core/Url.php:541
- →public mergeOptions($options) -> $this
Merges the URL options with any currently set. In the case of conflict with existing options, the new options will replace the existing options. @param array $options The array of options. See \Drupal\Core\Url::fromUri() for details on what it contains. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:690
- →public setAbsolute($absolute = true) -> $this
Sets the value of the absolute option for this Url. @param bool $absolute (optional) Whether to make this Url absolute or not. Defaults to TRUE. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:722
- →public setOption($name, $value) -> $this
Sets a specific option. See \Drupal\Core\Url::fromUri() for details on the options. @param string $name The name of the option. @param mixed $value The option value. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:673
- →public setOptions($options) -> $this
Sets the URL options. @param array $options The array of options. See \Drupal\Core\Url::fromUri() for details on what it contains. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:656
- →public setRouteParameter($key, $value) -> $this
Sets a specific route parameter. @param string $key The key of the route parameter. @param mixed $value The route parameter. @return $this @throws \UnexpectedValueException. If this is a URI with no corresponding route. Defined in <ROOT>core/lib/Drupal/Core/Url.php:609
- →public setRouteParameters($parameters) -> $this
Sets the route parameters. @param array $parameters The array of parameters. @return $this @throws \UnexpectedValueException. If this is a URI with no corresponding route. Defined in <ROOT>core/lib/Drupal/Core/Url.php:588
- →public setUnroutedUrlAssembler(Drupal\Core\Utility\UnroutedUrlAssemblerInterface $url_assembler) -> $this
Sets the unrouted URL assembler. @param \Drupal\Core\Utility\UnroutedUrlAssemblerInterface $url_assembler The unrouted URL assembler. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:885
- →public setUrlGenerator(Drupal\Core\Routing\UrlGeneratorInterface $url_generator = NULL) -> $this
Sets the URL generator. @param \Drupal\Core\Routing\UrlGeneratorInterface $url_generator (optional) The URL generator, specify NULL to reset it. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:871
- →public toRenderArray() -> array
Returns the route information for a render array. @return array An associative array suitable for a render array. Defined in <ROOT>core/lib/Drupal/Core/Url.php:762
- →public toString($collect_bubbleable_metadata = false) -> string|\Drupal\Core\GeneratedUrl
Generates the string URL representation for this Url object. For an external URL, the string will contain the input plus any query string or fragment specified by the options array. If this Url object was constructed from a Drupal route or from an internal URI (URIs using the internal:, base:, or entity: schemes), the returned string will either be a relative URL like /node/1 or an absolute URL like http://example.com/node/1 depending on the options array, plus any specified query string or fragment. @param bool $collect_bubbleable_metadata (optional) Defaults to FALSE. When TRUE, both the generated URL and its associated bubbleable metadata are returned. @return string|\Drupal\Core\GeneratedUrl A string URL. When $collect_bubbleable_metadata is TRUE, a GeneratedUrl object is returned, containing the generated URL plus bubbleable metadata. Defined in <ROOT>core/lib/Drupal/Core/Url.php:748
- →public toUriString() -> string
Generates a URI string that represents the data in the Url object. The URI will typically have the scheme of route: even if the object was constructed using an entity: or internal: scheme. A internal: URI that does not match a Drupal route with be returned here with the base: scheme, and external URLs will be returned in their original form. @return string A URI representation of the Url object data. Defined in <ROOT>core/lib/Drupal/Core/Url.php:512
- →protected static fromEntityUri(array $uri_parts, array $options, $uri) -> \Drupal\Core\Url
Create a new Url object for entity URIs. @param array $uri_parts Parts from an URI of the form entity:{entity_type}/{entity_id} as from parse_url(). @param array $options An array of options, see \Drupal\Core\Url::fromUri() for details. @param string $uri The original entered URI. @return \Drupal\Core\Url A new Url object for an entity's canonical route. @throws \InvalidArgumentException Thrown if the entity URI is invalid. Defined in <ROOT>core/lib/Drupal/Core/Url.php:341
- →protected static fromInternalUri(array $uri_parts, array $options) -> \Drupal\Core\Url
Creates a new Url object for 'internal:' URIs. Important note: the URI minus the scheme can NOT simply be validated by a \Drupal\Core\Path\PathValidatorInterface implementation. The semantics of the 'internal:' URI scheme are different: - PathValidatorInterface accepts paths without a leading slash (e.g. 'node/add') as well as 2 special paths: '<front>' and '<none>', which are mapped to the correspondingly named routes. - 'internal:' URIs store paths with a leading slash that represents the root — i.e. the front page — (e.g. 'internal:/node/add'), and doesn't have any exceptions. To clarify, a few examples of path plus corresponding 'internal:' URI: - 'node/add' -> 'internal:/node/add' - 'node/add?foo=bar' -> 'internal:/node/add?foo=bar' - 'node/add#kitten' -> 'internal:/node/add#kitten' - '<front>' -> 'internal:/' - '<front>foo=bar' -> 'internal:/?foo=bar' - '<front>#kitten' -> 'internal:/#kitten' - '<none>' -> 'internal:' - '<none>foo=bar' -> 'internal:?foo=bar' - '<none>#kitten' -> 'internal:#kitten' Therefore, when using a PathValidatorInterface to validate 'internal:' URIs, we must map: - 'internal:' (path component is '') to the special '<none>' path - 'internal:/' (path component is '/') to the special '<front>' path - 'internal:/some-path' (path component is '/some-path') to 'some-path' @param array $uri_parts Parts from an URI of the form internal:{path} as from parse_url(). @param array $options An array of options, see \Drupal\Core\Url::fromUri() for details. @return \Drupal\Core\Url A new Url object for a 'internal:' URI. @throws \InvalidArgumentException Thrown when the URI's path component doesn't have a leading slash. Defined in <ROOT>core/lib/Drupal/Core/Url.php:391
- →protected static fromRouteUri(array $uri_parts, array $options, $uri) -> \Drupal\Core\Url
Creates a new Url object for 'route:' URIs. @param array $uri_parts Parts from an URI of the form route:{route_name};{route_parameters} as from parse_url(), where the path is the route name optionally followed by a ";" followed by route parameters in key=value format with & separators. @param array $options An array of options, see \Drupal\Core\Url::fromUri() for details. @param string $uri The original passed in URI. @return \Drupal\Core\Url A new Url object for a 'route:' URI. @throws \InvalidArgumentException Thrown when the route URI does not have a route name. Defined in <ROOT>core/lib/Drupal/Core/Url.php:440
- →protected accessManager() -> \Drupal\Core\Access\AccessManagerInterface
@return \Drupal\Core\Access\AccessManagerInterface Defined in <ROOT>core/lib/Drupal/Core/Url.php:830
- →protected setUnrouted() -> $this
Sets this Url to encapsulate an unrouted URI. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:490
- →protected unroutedUrlAssembler() -> \Drupal\Core\Utility\UnroutedUrlAssemblerInterface
Gets the unrouted URL assembler for non-Drupal URLs. @return \Drupal\Core\Utility\UnroutedUrlAssemblerInterface The unrouted URL assembler. Defined in <ROOT>core/lib/Drupal/Core/Url.php:856
- →protected urlGenerator() -> \Drupal\Core\Routing\UrlGeneratorInterface
Gets the URL generator. @return \Drupal\Core\Routing\UrlGeneratorInterface The URL generator. Defined in <ROOT>core/lib/Drupal/Core/Url.php:843
- 'title' => string UTF-8(8) "Français"
- →'language' => Drupal\language\Entity\ConfigurableLanguage(24)
- contents
- Available methods (98)
- Static class properties (14)
- protected id -> string(2) "fr"
- protected label -> string UTF-8(8) "Français"
- protected direction -> string(3) "ltr"
- protected weight -> integer0
- protected locked -> boolFALSE
- protected preSaveMultilingual -> NULL
- protected originalId -> string(2) "fr"
- protected status -> boolTRUE
- protected uuid -> string(36) "7bca2d09-7af5-4f40-b4af-c94b9c11694b"
- private isSyncing -> boolFALSE
- private isUninstalling -> boolFALSE
- protected langcode -> string(2) "fr"
- protected third_party_settings -> array(0)
- protected _core -> array(0)
- protected trustedData -> boolFALSE
- protected entityTypeId -> string(21) "configurable_language"
- protected enforceIsNew -> NULL
- protected typedData -> NULL
- →protected cacheContexts -> array(1)
- string(28) "languages:language_interface"
- protected cacheTags -> array(0)
- protected cacheMaxAge -> integer-1
- protected _serviceIds -> array(0)
- protected _entityStorages -> array(0)
- protected dependencies -> array(0)
- →public static create(array $values = array())
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:544
- →public static createFromLangcode($langcode) -> $this
Creates a configurable language object from a langcode. @param string $langcode The language code to use to create the object. @return $this @see \Drupal\Core\Language\LanguageManager::getStandardLanguageList() Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:244
- →public static load($id)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:524
- →public static loadMultiple(array $ids = NULL)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:534
- →public static postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities)
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:163
- →public static postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:475
- →public static preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:450
- →public static preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities)
{@inheritdoc} @throws \DeleteDefaultLanguageException Exception thrown if we're trying to delete the default language entity. This is not allowed as a site must have a default language. Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:151
- →public static sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b)
Helper callback for uasort() to sort configuration entities by weight and label. Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:251
- →public __construct(array $values, $entity_type)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:112
- →public __sleep()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:353
- →public __wakeup()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:65
- →public access($operation, Drupal\Core\Session\AccountInterface $account = NULL, $return_as_object = false)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:358
- →public addCacheContexts(array $cache_contexts)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:31
- →public addCacheTags(array $cache_tags)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:41
- →public addCacheableDependency($other_object)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- →public bundle()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:159
- →public calculateDependencies()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:379
- →public createDuplicate()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- →public delete()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:397
- →public disable()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:188
- →public enable()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:181
- →public enforceIsNew($value = true)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:143
- →public get($property_name)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:157
- →public getCacheContexts()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:488
- →public getCacheMaxAge()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:517
- →public getCacheTags()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:507
- →public getCacheTagsToInvalidate()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:439
- →public getConfigDependencyKey()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:646
- →public getConfigDependencyName()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:482
- →public getConfigTarget()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:489
- →public getDependencies()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:468
- →public getDirection()
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:215
- →public getEntityType()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:423
- →public getEntityTypeId()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:152
- →public getId()
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:208
- →public getName()
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:192
- →public getOriginalId()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:126
- →public getThirdPartyProviders()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:573
- →public getThirdPartySetting($module, $key, $default = NULL)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:541
- →public getThirdPartySettings($module)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:553
- →public getTypedData()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:627
- →public getWeight()
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:222
- →public hasLinkTemplate($rel)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:251
- →public hasTrustedData()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:629
- →public id()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:122
- →public isDefault()
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:95
- →public isInstallable()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:614
- →public isLocked()
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:102
- →public isNew()
Overrides Entity::isNew(). EntityInterface::enforceIsNew() is only supported for newly created configuration entities but has no effect after saving, since each configuration entity is unique. Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:150
- →public isSyncing()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:219
- →public isUninstalling()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:233
- →public label()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:166
- →public language()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:372
- →public link($text = NULL, $rel = edit-form, array $options = array())
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:422
- →public mergeCacheMaxAge($max_age)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:51
- →public onDependencyRemoval(array $dependencies)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:500
- →public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:456
- →public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true)
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:120
- →public preSave(Drupal\Core\Entity\EntityStorageInterface $storage)
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:109
- →public referencedEntities()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:481
- →public save()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:636
- →public set($property_name, $value)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:164
- →public setName($name)
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:199
- →public setOriginalId($id)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:133
- →public setStatus($status)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:195
- →public setSyncing($syncing)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:210
- →public setThirdPartySetting($module, $key, $value)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:533
- →public setUninstalling($uninstalling)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:226
- →public setWeight($weight)
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:229
- →public status()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:203
- →public toArray()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:265
- →public toLink($text = NULL, $rel = canonical, array $options = array())
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:276
- →public toUrl($rel = edit-form, array $options = array())
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:430
- →public traitSleep()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:30
- →public trustData()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:621
- →public unsetThirdPartySetting($module, $key)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:560
- →public uriRelationships()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:336
- →public url($rel = edit-form, $options = array())
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:414
- →public urlInfo($rel = edit-form, array $options = array())
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:405
- →public uuid()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:129
- →protected static getConfigManager() -> \Drupal\Core\Config\ConfigManager
Gets the configuration manager. @return \Drupal\Core\Config\ConfigManager The configuration manager. Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:607
- →protected static getDefaultLangcode() -> string
Gets the default langcode. @return string The current default langcode. Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:184
- →protected static invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities)
{@inheritdoc} Override to never invalidate the individual entities' cache tags; the config system already invalidates them. Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:526
- →protected addDependencies(array $dependencies)
Adds multiple dependencies. @param array $dependencies An array of dependencies keyed by the type of dependency. One example: @code array( 'module' => array( 'node', 'field', 'image', ), ); @endcode @see \Drupal\Core\Entity\DependencyTrait::addDependency Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- →protected addDependency($type, $name)
Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). Note that this function should only be called from implementations of \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), as dependencies are recalculated during every entity save. @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:454
- →protected addDependencyTrait($type, $name) -> $this
Adds a dependency. @param string $type Type of dependency being added: 'module', 'theme', 'config', 'content'. @param string $name If $type is 'module' or 'theme', the name of the module or theme. If $type is 'config' or 'content', the result of EntityInterface::getConfigDependencyName(). @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() @return $this Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- →protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance)
Calculates and adds dependencies of a specific plugin instance. Dependencies are added for the module that provides the plugin, as well as any dependencies declared by the instance's calculateDependencies() method, if it implements \Drupal\Component\Plugin\DependentPluginInterface. @param \Drupal\Component\Plugin\PluginInspectionInterface $instance The plugin instance. Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:29
- →protected entityManager() -> \Drupal\Core\Entity\EntityManagerInterface
Gets the entity manager. @return \Drupal\Core\Entity\EntityManagerInterface @deprecated in Drupal 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal::entityTypeManager() instead in most cases. If the needed method is not on \Drupal\Core\Entity\EntityTypeManagerInterface, see the deprecated \Drupal\Core\Entity\EntityManager to find the correct interface or service. Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:79
- →protected entityTypeBundleInfo() -> \Drupal\Core\Entity\EntityTypeBundleInfoInterface
Gets the entity type bundle info service. @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:97
- →protected entityTypeManager() -> \Drupal\Core\Entity\EntityTypeManagerInterface
Gets the entity type manager. @return \Drupal\Core\Entity\EntityTypeManagerInterface Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:88
- →protected getTypedConfig() -> \Drupal\Core\Config\TypedConfigManagerInterface
Gets the typed config manager. @return \Drupal\Core\Config\TypedConfigManagerInterface Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:306
- →protected invalidateTagsOnSave($update)
{@inheritdoc} Override to never invalidate the entity's cache tag; the config system already invalidates it. Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:516
- →protected languageManager() -> \Drupal\Core\Language\LanguageManagerInterface
Gets the language manager. @return \Drupal\Core\Language\LanguageManagerInterface Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:106
- →protected linkTemplates() -> array
Gets an array link templates. @return array An array of link templates containing paths. Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:262
- →protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability) -> $this
Sets cacheability; useful for value object constructors. @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability The cacheability to set. @return $this Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- →protected urlRouteParameters($rel) -> array
Gets an array of placeholders for this entity. Individual entity classes may override this method to add additional placeholders if desired. If so, they should be sure to replicate the property caching logic. @param string $rel The link relationship type, for example: canonical or edit-form. @return array An array of URI placeholders. Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:315
- →protected uuidGenerator() -> \Drupal\Component\Uuid\UuidInterface
Gets the UUID generator. @return \Drupal\Component\Uuid\UuidInterface Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:115
- constant LANGCODE_SYSTEM :: string(6) "system"
- constant LANGCODE_NOT_SPECIFIED :: string(3) "und"
- constant LANGCODE_NOT_APPLICABLE :: string(3) "zxx"
- constant LANGCODE_DEFAULT :: string(9) "x-default"
- constant LANGCODE_SITE_DEFAULT :: string(12) "site_default"
- constant STATE_CONFIGURABLE :: integer1
- constant STATE_LOCKED :: integer2
- constant STATE_ALL :: integer3
- constant STATE_SITE_DEFAULT :: integer4
- constant TYPE_CONTENT :: string(16) "language_content"
- constant TYPE_INTERFACE :: string(18) "language_interface"
- constant TYPE_URL :: string(12) "language_url"
- constant DIRECTION_LTR :: string(3) "ltr"
- constant DIRECTION_RTL :: string(3) "rtl"
- →'attributes' => array(1)
- →'class' => array(1)
- string(13) "language-link"
- 'query' => array(0)
- →'en' => array(5)
- →'url' => Drupal\Core\Url(12)
- contents
- Available methods (36)
- protected urlGenerator -> NULL
- protected urlAssembler -> NULL
- protected accessManager -> NULL
- protected routeName -> string(21) "entity.node.canonical"
- protected routeParameters -> array(0)
- protected options -> array(0)
- protected external -> boolFALSE
- protected unrouted -> boolFALSE
- protected uri -> NULL
- protected internalPath -> NULL
- protected _serviceIds -> array(0)
- protected _entityStorages -> array(0)
- →public static createFromRequest(Symfony\Component\HttpFoundation\Request $request) -> static
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 in the Url object returned by this method. @param \Symfony\Component\HttpFoundation\Request $request A request object. @return static A Url object. Warning: the object is created even if the current user would get an access denied running the same request via the normal page flow. @throws \Drupal\Core\Routing\MatchingRouteNotFoundException Thrown when the request cannot be matched. Defined in <ROOT>core/lib/Drupal/Core/Url.php:476
- →public static fromRoute($route_name, $route_parameters = array(), $options = array()) -> \Drupal\Core\Url
Creates a new Url object for a URL that has a Drupal route. This method is for URLs that have Drupal routes (that is, most pages generated by Drupal). For non-routed local URIs relative to the base path (like robots.txt) use Url::fromUri() with the base: scheme. @param string $route_name The name of the route @param array $route_parameters (optional) An associative array of route parameter names and values. @param array $options See \Drupal\Core\Url::fromUri() for details. @return \Drupal\Core\Url A new Url object for a routed (internal to Drupal) URL. @see \Drupal\Core\Url::fromUserInput() @see \Drupal\Core\Url::fromUri() Defined in <ROOT>core/lib/Drupal/Core/Url.php:141
- →public static fromRouteMatch(Drupal\Core\Routing\RouteMatchInterface $route_match) -> $this
Creates a new URL object from a route match. @param \Drupal\Core\Routing\RouteMatchInterface $route_match The route match. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:153
- →public static fromUri($uri, $options = array()) -> \Drupal\Core\Url
Creates a new Url object from a URI. This method is for generating URLs for URIs that: - do not have Drupal routes: both external URLs and unrouted local URIs like base:robots.txt - do have a Drupal route but have a custom scheme to simplify linking. Currently, there is only the entity: scheme (This allows URIs of the form entity:{entity_type}/{entity_id}. For example: entity:node/1 resolves to the entity.node.canonical route with a node parameter of 1.) For URLs that have Drupal routes (that is, most pages generated by Drupal), use Url::fromRoute(). @param string $uri The URI of the resource including the scheme. For user input that may correspond to a Drupal route, use internal: for the scheme. For paths that are known not to be handled by the Drupal routing system (such as static files), use base: for the scheme to get a link relative to the Drupal base path (like the <base> HTML element). For a link to an entity you may use entity:{entity_type}/{entity_id} URIs. The internal: scheme should be avoided except when processing actual user input that may or may not correspond to a Drupal route. Normally use Url::fromRoute() for code linking to any any Drupal page. @param array $options (optional) An associative array of additional URL options, with the following elements: - 'query': An array of query key/value-pairs (without any URL-encoding) to append to the URL. - 'fragment': A fragment identifier (named anchor) to append to the URL. Do not include the leading '#' character. - 'absolute': Defaults to FALSE. Whether to force the output to be an absolute link (beginning with http:). Useful for links that will be displayed outside the site, such as in an RSS feed. - 'attributes': An associative array of HTML attributes that will be added to the anchor tag if you use the \Drupal\Core\Link class to make the link. - 'language': An optional language object used to look up the alias for the URL. If $options['language'] is omitted, it defaults to the current language for the language type LanguageInterface::TYPE_URL. - 'https': Whether this URL should point to a secure location. If not defined, the current scheme is used, so the user stays on HTTP or HTTPS respectively. TRUE enforces HTTPS and FALSE enforces HTTP. @return \Drupal\Core\Url A new Url object with properties depending on the URI scheme. Call the access() method on this to do access checking. @throws \InvalidArgumentException Thrown when the passed in path has no scheme. @see \Drupal\Core\Url::fromRoute() @see \Drupal\Core\Url::fromUserInput() Defined in <ROOT>core/lib/Drupal/Core/Url.php:266
- →public static fromUserInput($user_input, $options = array()) -> static
Creates a Url object for a relative URI reference submitted by user input. Use this method to create a URL for user-entered paths that may or may not correspond to a valid Drupal route. @param string $user_input User input for a link or path. The first character must be one of the following characters: - '/': A path within the current site. This path might be to a Drupal route (e.g., '/admin'), to a file (e.g., '/README.txt'), or to something processed by a non-Drupal script (e.g., '/not/a/drupal/page'). If the path matches a Drupal route, then the URL generation will include Drupal's path processors (e.g., language-prefixing and aliasing). Otherwise, the URL generation will just append the passed-in path to Drupal's base path. - '?': A query string for the current page or resource. - '#': A fragment (jump-link) on the current page or resource. This helps reduce ambiguity for user-entered links and paths, and supports user interfaces where users may normally use auto-completion to search for existing resources, but also may type one of these characters to link to (e.g.) a specific path on the site. (With regard to the URI specification, the user input is treated as a @link https://tools.ietf.org/html/rfc3986#section-4.2 relative URI reference @endlink where the relative part is of type @link https://tools.ietf.org/html/rfc3986#section-3.3 path-abempty @endlink.) @param array $options (optional) An array of options. See Url::fromUri() for details. @return static A new Url object based on user input. @throws \InvalidArgumentException Thrown when the user input does not begin with one of the following characters: '/', '?', or '#'. Defined in <ROOT>core/lib/Drupal/Core/Url.php:198
- →public static renderAccess(array $element) -> bool
Checks a Url render element against applicable access check services. @param array $element A render element as returned from \Drupal\Core\Url::toRenderArray(). @return bool Returns TRUE if the current user has access to the url, otherwise FALSE. Defined in <ROOT>core/lib/Drupal/Core/Url.php:823
- →public __construct($route_name, $route_parameters = array(), $options = array())
Constructs a new Url object. In most cases, use Url::fromRoute() or Url::fromUri() rather than constructing Url objects directly in order to avoid ambiguity and make your code more self-documenting. @param string $route_name The name of the route @param array $route_parameters (optional) An associative array of parameter names and values. @param array $options See \Drupal\Core\Url::fromUri() for details. @see static::fromRoute() @see static::fromUri() @todo Update this documentation for non-routed URIs in https://www.drupal.org/node/2346787 Defined in <ROOT>core/lib/Drupal/Core/Url.php:115
- →public __sleep()
{@inheritdoc} Defined in <ROOT>core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:30
- →public __wakeup()
{@inheritdoc} Defined in <ROOT>core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:65
- →public access(Drupal\Core\Session\AccountInterface $account = NULL) -> bool
Checks this Url object against applicable access check services. Determines whether the route is accessible or not. @param \Drupal\Core\Session\AccountInterface $account (optional) Run access checks for this account. Defaults to the current user. @return bool Returns TRUE if the user has access to the url, otherwise FALSE. Defined in <ROOT>core/lib/Drupal/Core/Url.php:807
- →public getInternalPath() -> string
Returns the internal path (system path) for this route. This path will not include any prefixes, fragments, or query strings. @return string The internal path for this route. @throws \UnexpectedValueException. If this is a URI with no corresponding system path. Defined in <ROOT>core/lib/Drupal/Core/Url.php:784
- →public getOption($name) -> mixed
Gets a specific option. See \Drupal\Core\Url::fromUri() for details on the options. @param string $name The name of the option. @return mixed The value for a specific option, or NULL if it does not exist. Defined in <ROOT>core/lib/Drupal/Core/Url.php:639
- →public getOptions() -> array
Returns the URL options. @return array The array of options. See \Drupal\Core\Url::fromUri() for details on what it contains. Defined in <ROOT>core/lib/Drupal/Core/Url.php:624
- →public getRouteName() -> string
Returns the route name. @return string @throws \UnexpectedValueException. If this is a URI with no corresponding route. Defined in <ROOT>core/lib/Drupal/Core/Url.php:553
- →public getRouteParameters() -> array
Returns the route parameters. @return array @throws \UnexpectedValueException. If this is a URI with no corresponding route. Defined in <ROOT>core/lib/Drupal/Core/Url.php:569
- →public getUri() -> string
Returns the URI value for this Url object. Only to be used if self::$unrouted is TRUE. @return string A URI not connected to a route. May be an external URL. @throws \UnexpectedValueException Thrown when the URI was requested for a routed URL. Defined in <ROOT>core/lib/Drupal/Core/Url.php:706
- →public isExternal() -> bool
Indicates if this Url is external. @return bool Defined in <ROOT>core/lib/Drupal/Core/Url.php:532
- →public isRouted() -> bool
Indicates if this Url has a Drupal route. @return bool Defined in <ROOT>core/lib/Drupal/Core/Url.php:541
- →public mergeOptions($options) -> $this
Merges the URL options with any currently set. In the case of conflict with existing options, the new options will replace the existing options. @param array $options The array of options. See \Drupal\Core\Url::fromUri() for details on what it contains. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:690
- →public setAbsolute($absolute = true) -> $this
Sets the value of the absolute option for this Url. @param bool $absolute (optional) Whether to make this Url absolute or not. Defaults to TRUE. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:722
- →public setOption($name, $value) -> $this
Sets a specific option. See \Drupal\Core\Url::fromUri() for details on the options. @param string $name The name of the option. @param mixed $value The option value. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:673
- →public setOptions($options) -> $this
Sets the URL options. @param array $options The array of options. See \Drupal\Core\Url::fromUri() for details on what it contains. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:656
- →public setRouteParameter($key, $value) -> $this
Sets a specific route parameter. @param string $key The key of the route parameter. @param mixed $value The route parameter. @return $this @throws \UnexpectedValueException. If this is a URI with no corresponding route. Defined in <ROOT>core/lib/Drupal/Core/Url.php:609
- →public setRouteParameters($parameters) -> $this
Sets the route parameters. @param array $parameters The array of parameters. @return $this @throws \UnexpectedValueException. If this is a URI with no corresponding route. Defined in <ROOT>core/lib/Drupal/Core/Url.php:588
- →public setUnroutedUrlAssembler(Drupal\Core\Utility\UnroutedUrlAssemblerInterface $url_assembler) -> $this
Sets the unrouted URL assembler. @param \Drupal\Core\Utility\UnroutedUrlAssemblerInterface $url_assembler The unrouted URL assembler. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:885
- →public setUrlGenerator(Drupal\Core\Routing\UrlGeneratorInterface $url_generator = NULL) -> $this
Sets the URL generator. @param \Drupal\Core\Routing\UrlGeneratorInterface $url_generator (optional) The URL generator, specify NULL to reset it. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:871
- →public toRenderArray() -> array
Returns the route information for a render array. @return array An associative array suitable for a render array. Defined in <ROOT>core/lib/Drupal/Core/Url.php:762
- →public toString($collect_bubbleable_metadata = false) -> string|\Drupal\Core\GeneratedUrl
Generates the string URL representation for this Url object. For an external URL, the string will contain the input plus any query string or fragment specified by the options array. If this Url object was constructed from a Drupal route or from an internal URI (URIs using the internal:, base:, or entity: schemes), the returned string will either be a relative URL like /node/1 or an absolute URL like http://example.com/node/1 depending on the options array, plus any specified query string or fragment. @param bool $collect_bubbleable_metadata (optional) Defaults to FALSE. When TRUE, both the generated URL and its associated bubbleable metadata are returned. @return string|\Drupal\Core\GeneratedUrl A string URL. When $collect_bubbleable_metadata is TRUE, a GeneratedUrl object is returned, containing the generated URL plus bubbleable metadata. Defined in <ROOT>core/lib/Drupal/Core/Url.php:748
- →public toUriString() -> string
Generates a URI string that represents the data in the Url object. The URI will typically have the scheme of route: even if the object was constructed using an entity: or internal: scheme. A internal: URI that does not match a Drupal route with be returned here with the base: scheme, and external URLs will be returned in their original form. @return string A URI representation of the Url object data. Defined in <ROOT>core/lib/Drupal/Core/Url.php:512
- →protected static fromEntityUri(array $uri_parts, array $options, $uri) -> \Drupal\Core\Url
Create a new Url object for entity URIs. @param array $uri_parts Parts from an URI of the form entity:{entity_type}/{entity_id} as from parse_url(). @param array $options An array of options, see \Drupal\Core\Url::fromUri() for details. @param string $uri The original entered URI. @return \Drupal\Core\Url A new Url object for an entity's canonical route. @throws \InvalidArgumentException Thrown if the entity URI is invalid. Defined in <ROOT>core/lib/Drupal/Core/Url.php:341
- →protected static fromInternalUri(array $uri_parts, array $options) -> \Drupal\Core\Url
Creates a new Url object for 'internal:' URIs. Important note: the URI minus the scheme can NOT simply be validated by a \Drupal\Core\Path\PathValidatorInterface implementation. The semantics of the 'internal:' URI scheme are different: - PathValidatorInterface accepts paths without a leading slash (e.g. 'node/add') as well as 2 special paths: '<front>' and '<none>', which are mapped to the correspondingly named routes. - 'internal:' URIs store paths with a leading slash that represents the root — i.e. the front page — (e.g. 'internal:/node/add'), and doesn't have any exceptions. To clarify, a few examples of path plus corresponding 'internal:' URI: - 'node/add' -> 'internal:/node/add' - 'node/add?foo=bar' -> 'internal:/node/add?foo=bar' - 'node/add#kitten' -> 'internal:/node/add#kitten' - '<front>' -> 'internal:/' - '<front>foo=bar' -> 'internal:/?foo=bar' - '<front>#kitten' -> 'internal:/#kitten' - '<none>' -> 'internal:' - '<none>foo=bar' -> 'internal:?foo=bar' - '<none>#kitten' -> 'internal:#kitten' Therefore, when using a PathValidatorInterface to validate 'internal:' URIs, we must map: - 'internal:' (path component is '') to the special '<none>' path - 'internal:/' (path component is '/') to the special '<front>' path - 'internal:/some-path' (path component is '/some-path') to 'some-path' @param array $uri_parts Parts from an URI of the form internal:{path} as from parse_url(). @param array $options An array of options, see \Drupal\Core\Url::fromUri() for details. @return \Drupal\Core\Url A new Url object for a 'internal:' URI. @throws \InvalidArgumentException Thrown when the URI's path component doesn't have a leading slash. Defined in <ROOT>core/lib/Drupal/Core/Url.php:391
- →protected static fromRouteUri(array $uri_parts, array $options, $uri) -> \Drupal\Core\Url
Creates a new Url object for 'route:' URIs. @param array $uri_parts Parts from an URI of the form route:{route_name};{route_parameters} as from parse_url(), where the path is the route name optionally followed by a ";" followed by route parameters in key=value format with & separators. @param array $options An array of options, see \Drupal\Core\Url::fromUri() for details. @param string $uri The original passed in URI. @return \Drupal\Core\Url A new Url object for a 'route:' URI. @throws \InvalidArgumentException Thrown when the route URI does not have a route name. Defined in <ROOT>core/lib/Drupal/Core/Url.php:440
- →protected accessManager() -> \Drupal\Core\Access\AccessManagerInterface
@return \Drupal\Core\Access\AccessManagerInterface Defined in <ROOT>core/lib/Drupal/Core/Url.php:830
- →protected setUnrouted() -> $this
Sets this Url to encapsulate an unrouted URI. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:490
- →protected unroutedUrlAssembler() -> \Drupal\Core\Utility\UnroutedUrlAssemblerInterface
Gets the unrouted URL assembler for non-Drupal URLs. @return \Drupal\Core\Utility\UnroutedUrlAssemblerInterface The unrouted URL assembler. Defined in <ROOT>core/lib/Drupal/Core/Url.php:856
- →protected urlGenerator() -> \Drupal\Core\Routing\UrlGeneratorInterface
Gets the URL generator. @return \Drupal\Core\Routing\UrlGeneratorInterface The URL generator. Defined in <ROOT>core/lib/Drupal/Core/Url.php:843
- 'title' => string(7) "English"
- →'language' => Drupal\language\Entity\ConfigurableLanguage(24)
- contents
- Available methods (98)
- Static class properties (14)
- protected id -> string(2) "en"
- protected label -> string(7) "English"
- protected direction -> string(3) "ltr"
- protected weight -> integer1
- protected locked -> boolFALSE
- protected preSaveMultilingual -> NULL
- protected originalId -> string(2) "en"
- protected status -> boolTRUE
- protected uuid -> string(36) "487b487a-2d5e-4da2-879a-30952f742c08"
- private isSyncing -> boolFALSE
- private isUninstalling -> boolFALSE
- protected langcode -> string(2) "fr"
- protected third_party_settings -> array(0)
- protected _core -> array(0)
- protected trustedData -> boolFALSE
- protected entityTypeId -> string(21) "configurable_language"
- protected enforceIsNew -> NULL
- protected typedData -> NULL
- →protected cacheContexts -> array(1)
- string(28) "languages:language_interface"
- protected cacheTags -> array(0)
- protected cacheMaxAge -> integer-1
- protected _serviceIds -> array(0)
- protected _entityStorages -> array(0)
- protected dependencies -> array(0)
- →public static create(array $values = array())
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:544
- →public static createFromLangcode($langcode) -> $this
Creates a configurable language object from a langcode. @param string $langcode The language code to use to create the object. @return $this @see \Drupal\Core\Language\LanguageManager::getStandardLanguageList() Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:244
- →public static load($id)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:524
- →public static loadMultiple(array $ids = NULL)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:534
- →public static postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities)
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:163
- →public static postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:475
- →public static preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:450
- →public static preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities)
{@inheritdoc} @throws \DeleteDefaultLanguageException Exception thrown if we're trying to delete the default language entity. This is not allowed as a site must have a default language. Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:151
- →public static sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b)
Helper callback for uasort() to sort configuration entities by weight and label. Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:251
- →public __construct(array $values, $entity_type)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:112
- →public __sleep()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:353
- →public __wakeup()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:65
- →public access($operation, Drupal\Core\Session\AccountInterface $account = NULL, $return_as_object = false)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:358
- →public addCacheContexts(array $cache_contexts)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:31
- →public addCacheTags(array $cache_tags)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:41
- →public addCacheableDependency($other_object)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- →public bundle()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:159
- →public calculateDependencies()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:379
- →public createDuplicate()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- →public delete()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:397
- →public disable()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:188
- →public enable()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:181
- →public enforceIsNew($value = true)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:143
- →public get($property_name)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:157
- →public getCacheContexts()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:488
- →public getCacheMaxAge()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:517
- →public getCacheTags()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:507
- →public getCacheTagsToInvalidate()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:439
- →public getConfigDependencyKey()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:646
- →public getConfigDependencyName()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:482
- →public getConfigTarget()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:489
- →public getDependencies()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:468
- →public getDirection()
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:215
- →public getEntityType()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:423
- →public getEntityTypeId()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:152
- →public getId()
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:208
- →public getName()
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:192
- →public getOriginalId()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:126
- →public getThirdPartyProviders()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:573
- →public getThirdPartySetting($module, $key, $default = NULL)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:541
- →public getThirdPartySettings($module)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:553
- →public getTypedData()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:627
- →public getWeight()
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:222
- →public hasLinkTemplate($rel)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:251
- →public hasTrustedData()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:629
- →public id()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:122
- →public isDefault()
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:95
- →public isInstallable()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:614
- →public isLocked()
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:102
- →public isNew()
Overrides Entity::isNew(). EntityInterface::enforceIsNew() is only supported for newly created configuration entities but has no effect after saving, since each configuration entity is unique. Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:150
- →public isSyncing()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:219
- →public isUninstalling()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:233
- →public label()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:166
- →public language()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:372
- →public link($text = NULL, $rel = edit-form, array $options = array())
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:422
- →public mergeCacheMaxAge($max_age)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:51
- →public onDependencyRemoval(array $dependencies)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:500
- →public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:456
- →public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true)
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:120
- →public preSave(Drupal\Core\Entity\EntityStorageInterface $storage)
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:109
- →public referencedEntities()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:481
- →public save()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:636
- →public set($property_name, $value)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:164
- →public setName($name)
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:199
- →public setOriginalId($id)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:133
- →public setStatus($status)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:195
- →public setSyncing($syncing)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:210
- →public setThirdPartySetting($module, $key, $value)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:533
- →public setUninstalling($uninstalling)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:226
- →public setWeight($weight)
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:229
- →public status()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:203
- →public toArray()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:265
- →public toLink($text = NULL, $rel = canonical, array $options = array())
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:276
- →public toUrl($rel = edit-form, array $options = array())
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:430
- →public traitSleep()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:30
- →public trustData()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:621
- →public unsetThirdPartySetting($module, $key)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:560
- →public uriRelationships()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:336
- →public url($rel = edit-form, $options = array())
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:414
- →public urlInfo($rel = edit-form, array $options = array())
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:405
- →public uuid()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:129
- →protected static getConfigManager() -> \Drupal\Core\Config\ConfigManager
Gets the configuration manager. @return \Drupal\Core\Config\ConfigManager The configuration manager. Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:607
- →protected static getDefaultLangcode() -> string
Gets the default langcode. @return string The current default langcode. Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:184
- →protected static invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities)
{@inheritdoc} Override to never invalidate the individual entities' cache tags; the config system already invalidates them. Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:526
- →protected addDependencies(array $dependencies)
Adds multiple dependencies. @param array $dependencies An array of dependencies keyed by the type of dependency. One example: @code array( 'module' => array( 'node', 'field', 'image', ), ); @endcode @see \Drupal\Core\Entity\DependencyTrait::addDependency Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- →protected addDependency($type, $name)
Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). Note that this function should only be called from implementations of \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), as dependencies are recalculated during every entity save. @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:454
- →protected addDependencyTrait($type, $name) -> $this
Adds a dependency. @param string $type Type of dependency being added: 'module', 'theme', 'config', 'content'. @param string $name If $type is 'module' or 'theme', the name of the module or theme. If $type is 'config' or 'content', the result of EntityInterface::getConfigDependencyName(). @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() @return $this Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- →protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance)
Calculates and adds dependencies of a specific plugin instance. Dependencies are added for the module that provides the plugin, as well as any dependencies declared by the instance's calculateDependencies() method, if it implements \Drupal\Component\Plugin\DependentPluginInterface. @param \Drupal\Component\Plugin\PluginInspectionInterface $instance The plugin instance. Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:29
- →protected entityManager() -> \Drupal\Core\Entity\EntityManagerInterface
Gets the entity manager. @return \Drupal\Core\Entity\EntityManagerInterface @deprecated in Drupal 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal::entityTypeManager() instead in most cases. If the needed method is not on \Drupal\Core\Entity\EntityTypeManagerInterface, see the deprecated \Drupal\Core\Entity\EntityManager to find the correct interface or service. Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:79
- →protected entityTypeBundleInfo() -> \Drupal\Core\Entity\EntityTypeBundleInfoInterface
Gets the entity type bundle info service. @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:97
- →protected entityTypeManager() -> \Drupal\Core\Entity\EntityTypeManagerInterface
Gets the entity type manager. @return \Drupal\Core\Entity\EntityTypeManagerInterface Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:88
- →protected getTypedConfig() -> \Drupal\Core\Config\TypedConfigManagerInterface
Gets the typed config manager. @return \Drupal\Core\Config\TypedConfigManagerInterface Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:306
- →protected invalidateTagsOnSave($update)
{@inheritdoc} Override to never invalidate the entity's cache tag; the config system already invalidates it. Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:516
- →protected languageManager() -> \Drupal\Core\Language\LanguageManagerInterface
Gets the language manager. @return \Drupal\Core\Language\LanguageManagerInterface Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:106
- →protected linkTemplates() -> array
Gets an array link templates. @return array An array of link templates containing paths. Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:262
- →protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability) -> $this
Sets cacheability; useful for value object constructors. @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability The cacheability to set. @return $this Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- →protected urlRouteParameters($rel) -> array
Gets an array of placeholders for this entity. Individual entity classes may override this method to add additional placeholders if desired. If so, they should be sure to replicate the property caching logic. @param string $rel The link relationship type, for example: canonical or edit-form. @return array An array of URI placeholders. Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:315
- →protected uuidGenerator() -> \Drupal\Component\Uuid\UuidInterface
Gets the UUID generator. @return \Drupal\Component\Uuid\UuidInterface Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:115
- constant LANGCODE_SYSTEM :: string(6) "system"
- constant LANGCODE_NOT_SPECIFIED :: string(3) "und"
- constant LANGCODE_NOT_APPLICABLE :: string(3) "zxx"
- constant LANGCODE_DEFAULT :: string(9) "x-default"
- constant LANGCODE_SITE_DEFAULT :: string(12) "site_default"
- constant STATE_CONFIGURABLE :: integer1
- constant STATE_LOCKED :: integer2
- constant STATE_ALL :: integer3
- constant STATE_SITE_DEFAULT :: integer4
- constant TYPE_CONTENT :: string(16) "language_content"
- constant TYPE_INTERFACE :: string(18) "language_interface"
- constant TYPE_URL :: string(12) "language_url"
- constant DIRECTION_LTR :: string(3) "ltr"
- constant DIRECTION_RTL :: string(3) "rtl"
- →'attributes' => array(1)
- →'class' => array(1)
- string(13) "language-link"
- 'query' => array(0)
- public method_id -> string(12) "language-url"

- → array(2)
- →'fr' => stdClass(2)
- →public links -> array(2)
- →'fr' => array(5)
- →'url' => Drupal\Core\Url(12)
- contents
- Available methods (36)
- protected urlGenerator -> NULL
- protected urlAssembler -> NULL
- protected accessManager -> NULL
- protected routeName -> string(21) "entity.node.canonical"
- protected routeParameters -> array(0)
- protected options -> array(0)
- protected external -> boolFALSE
- protected unrouted -> boolFALSE
- protected uri -> NULL
- protected internalPath -> NULL
- protected _serviceIds -> array(0)
- protected _entityStorages -> array(0)
- →public static createFromRequest(Symfony\Component\HttpFoundation\Request $request) -> static
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 in the Url object returned by this method. @param \Symfony\Component\HttpFoundation\Request $request A request object. @return static A Url object. Warning: the object is created even if the current user would get an access denied running the same request via the normal page flow. @throws \Drupal\Core\Routing\MatchingRouteNotFoundException Thrown when the request cannot be matched. Defined in <ROOT>core/lib/Drupal/Core/Url.php:476
- →public static fromRoute($route_name, $route_parameters = array(), $options = array()) -> \Drupal\Core\Url
Creates a new Url object for a URL that has a Drupal route. This method is for URLs that have Drupal routes (that is, most pages generated by Drupal). For non-routed local URIs relative to the base path (like robots.txt) use Url::fromUri() with the base: scheme. @param string $route_name The name of the route @param array $route_parameters (optional) An associative array of route parameter names and values. @param array $options See \Drupal\Core\Url::fromUri() for details. @return \Drupal\Core\Url A new Url object for a routed (internal to Drupal) URL. @see \Drupal\Core\Url::fromUserInput() @see \Drupal\Core\Url::fromUri() Defined in <ROOT>core/lib/Drupal/Core/Url.php:141
- →public static fromRouteMatch(Drupal\Core\Routing\RouteMatchInterface $route_match) -> $this
Creates a new URL object from a route match. @param \Drupal\Core\Routing\RouteMatchInterface $route_match The route match. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:153
- →public static fromUri($uri, $options = array()) -> \Drupal\Core\Url
Creates a new Url object from a URI. This method is for generating URLs for URIs that: - do not have Drupal routes: both external URLs and unrouted local URIs like base:robots.txt - do have a Drupal route but have a custom scheme to simplify linking. Currently, there is only the entity: scheme (This allows URIs of the form entity:{entity_type}/{entity_id}. For example: entity:node/1 resolves to the entity.node.canonical route with a node parameter of 1.) For URLs that have Drupal routes (that is, most pages generated by Drupal), use Url::fromRoute(). @param string $uri The URI of the resource including the scheme. For user input that may correspond to a Drupal route, use internal: for the scheme. For paths that are known not to be handled by the Drupal routing system (such as static files), use base: for the scheme to get a link relative to the Drupal base path (like the <base> HTML element). For a link to an entity you may use entity:{entity_type}/{entity_id} URIs. The internal: scheme should be avoided except when processing actual user input that may or may not correspond to a Drupal route. Normally use Url::fromRoute() for code linking to any any Drupal page. @param array $options (optional) An associative array of additional URL options, with the following elements: - 'query': An array of query key/value-pairs (without any URL-encoding) to append to the URL. - 'fragment': A fragment identifier (named anchor) to append to the URL. Do not include the leading '#' character. - 'absolute': Defaults to FALSE. Whether to force the output to be an absolute link (beginning with http:). Useful for links that will be displayed outside the site, such as in an RSS feed. - 'attributes': An associative array of HTML attributes that will be added to the anchor tag if you use the \Drupal\Core\Link class to make the link. - 'language': An optional language object used to look up the alias for the URL. If $options['language'] is omitted, it defaults to the current language for the language type LanguageInterface::TYPE_URL. - 'https': Whether this URL should point to a secure location. If not defined, the current scheme is used, so the user stays on HTTP or HTTPS respectively. TRUE enforces HTTPS and FALSE enforces HTTP. @return \Drupal\Core\Url A new Url object with properties depending on the URI scheme. Call the access() method on this to do access checking. @throws \InvalidArgumentException Thrown when the passed in path has no scheme. @see \Drupal\Core\Url::fromRoute() @see \Drupal\Core\Url::fromUserInput() Defined in <ROOT>core/lib/Drupal/Core/Url.php:266
- →public static fromUserInput($user_input, $options = array()) -> static
Creates a Url object for a relative URI reference submitted by user input. Use this method to create a URL for user-entered paths that may or may not correspond to a valid Drupal route. @param string $user_input User input for a link or path. The first character must be one of the following characters: - '/': A path within the current site. This path might be to a Drupal route (e.g., '/admin'), to a file (e.g., '/README.txt'), or to something processed by a non-Drupal script (e.g., '/not/a/drupal/page'). If the path matches a Drupal route, then the URL generation will include Drupal's path processors (e.g., language-prefixing and aliasing). Otherwise, the URL generation will just append the passed-in path to Drupal's base path. - '?': A query string for the current page or resource. - '#': A fragment (jump-link) on the current page or resource. This helps reduce ambiguity for user-entered links and paths, and supports user interfaces where users may normally use auto-completion to search for existing resources, but also may type one of these characters to link to (e.g.) a specific path on the site. (With regard to the URI specification, the user input is treated as a @link https://tools.ietf.org/html/rfc3986#section-4.2 relative URI reference @endlink where the relative part is of type @link https://tools.ietf.org/html/rfc3986#section-3.3 path-abempty @endlink.) @param array $options (optional) An array of options. See Url::fromUri() for details. @return static A new Url object based on user input. @throws \InvalidArgumentException Thrown when the user input does not begin with one of the following characters: '/', '?', or '#'. Defined in <ROOT>core/lib/Drupal/Core/Url.php:198
- →public static renderAccess(array $element) -> bool
Checks a Url render element against applicable access check services. @param array $element A render element as returned from \Drupal\Core\Url::toRenderArray(). @return bool Returns TRUE if the current user has access to the url, otherwise FALSE. Defined in <ROOT>core/lib/Drupal/Core/Url.php:823
- →public __construct($route_name, $route_parameters = array(), $options = array())
Constructs a new Url object. In most cases, use Url::fromRoute() or Url::fromUri() rather than constructing Url objects directly in order to avoid ambiguity and make your code more self-documenting. @param string $route_name The name of the route @param array $route_parameters (optional) An associative array of parameter names and values. @param array $options See \Drupal\Core\Url::fromUri() for details. @see static::fromRoute() @see static::fromUri() @todo Update this documentation for non-routed URIs in https://www.drupal.org/node/2346787 Defined in <ROOT>core/lib/Drupal/Core/Url.php:115
- →public __sleep()
{@inheritdoc} Defined in <ROOT>core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:30
- →public __wakeup()
{@inheritdoc} Defined in <ROOT>core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:65
- →public access(Drupal\Core\Session\AccountInterface $account = NULL) -> bool
Checks this Url object against applicable access check services. Determines whether the route is accessible or not. @param \Drupal\Core\Session\AccountInterface $account (optional) Run access checks for this account. Defaults to the current user. @return bool Returns TRUE if the user has access to the url, otherwise FALSE. Defined in <ROOT>core/lib/Drupal/Core/Url.php:807
- →public getInternalPath() -> string
Returns the internal path (system path) for this route. This path will not include any prefixes, fragments, or query strings. @return string The internal path for this route. @throws \UnexpectedValueException. If this is a URI with no corresponding system path. Defined in <ROOT>core/lib/Drupal/Core/Url.php:784
- →public getOption($name) -> mixed
Gets a specific option. See \Drupal\Core\Url::fromUri() for details on the options. @param string $name The name of the option. @return mixed The value for a specific option, or NULL if it does not exist. Defined in <ROOT>core/lib/Drupal/Core/Url.php:639
- →public getOptions() -> array
Returns the URL options. @return array The array of options. See \Drupal\Core\Url::fromUri() for details on what it contains. Defined in <ROOT>core/lib/Drupal/Core/Url.php:624
- →public getRouteName() -> string
Returns the route name. @return string @throws \UnexpectedValueException. If this is a URI with no corresponding route. Defined in <ROOT>core/lib/Drupal/Core/Url.php:553
- →public getRouteParameters() -> array
Returns the route parameters. @return array @throws \UnexpectedValueException. If this is a URI with no corresponding route. Defined in <ROOT>core/lib/Drupal/Core/Url.php:569
- →public getUri() -> string
Returns the URI value for this Url object. Only to be used if self::$unrouted is TRUE. @return string A URI not connected to a route. May be an external URL. @throws \UnexpectedValueException Thrown when the URI was requested for a routed URL. Defined in <ROOT>core/lib/Drupal/Core/Url.php:706
- →public isExternal() -> bool
Indicates if this Url is external. @return bool Defined in <ROOT>core/lib/Drupal/Core/Url.php:532
- →public isRouted() -> bool
Indicates if this Url has a Drupal route. @return bool Defined in <ROOT>core/lib/Drupal/Core/Url.php:541
- →public mergeOptions($options) -> $this
Merges the URL options with any currently set. In the case of conflict with existing options, the new options will replace the existing options. @param array $options The array of options. See \Drupal\Core\Url::fromUri() for details on what it contains. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:690
- →public setAbsolute($absolute = true) -> $this
Sets the value of the absolute option for this Url. @param bool $absolute (optional) Whether to make this Url absolute or not. Defaults to TRUE. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:722
- →public setOption($name, $value) -> $this
Sets a specific option. See \Drupal\Core\Url::fromUri() for details on the options. @param string $name The name of the option. @param mixed $value The option value. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:673
- →public setOptions($options) -> $this
Sets the URL options. @param array $options The array of options. See \Drupal\Core\Url::fromUri() for details on what it contains. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:656
- →public setRouteParameter($key, $value) -> $this
Sets a specific route parameter. @param string $key The key of the route parameter. @param mixed $value The route parameter. @return $this @throws \UnexpectedValueException. If this is a URI with no corresponding route. Defined in <ROOT>core/lib/Drupal/Core/Url.php:609
- →public setRouteParameters($parameters) -> $this
Sets the route parameters. @param array $parameters The array of parameters. @return $this @throws \UnexpectedValueException. If this is a URI with no corresponding route. Defined in <ROOT>core/lib/Drupal/Core/Url.php:588
- →public setUnroutedUrlAssembler(Drupal\Core\Utility\UnroutedUrlAssemblerInterface $url_assembler) -> $this
Sets the unrouted URL assembler. @param \Drupal\Core\Utility\UnroutedUrlAssemblerInterface $url_assembler The unrouted URL assembler. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:885
- →public setUrlGenerator(Drupal\Core\Routing\UrlGeneratorInterface $url_generator = NULL) -> $this
Sets the URL generator. @param \Drupal\Core\Routing\UrlGeneratorInterface $url_generator (optional) The URL generator, specify NULL to reset it. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:871
- →public toRenderArray() -> array
Returns the route information for a render array. @return array An associative array suitable for a render array. Defined in <ROOT>core/lib/Drupal/Core/Url.php:762
- →public toString($collect_bubbleable_metadata = false) -> string|\Drupal\Core\GeneratedUrl
Generates the string URL representation for this Url object. For an external URL, the string will contain the input plus any query string or fragment specified by the options array. If this Url object was constructed from a Drupal route or from an internal URI (URIs using the internal:, base:, or entity: schemes), the returned string will either be a relative URL like /node/1 or an absolute URL like http://example.com/node/1 depending on the options array, plus any specified query string or fragment. @param bool $collect_bubbleable_metadata (optional) Defaults to FALSE. When TRUE, both the generated URL and its associated bubbleable metadata are returned. @return string|\Drupal\Core\GeneratedUrl A string URL. When $collect_bubbleable_metadata is TRUE, a GeneratedUrl object is returned, containing the generated URL plus bubbleable metadata. Defined in <ROOT>core/lib/Drupal/Core/Url.php:748
- →public toUriString() -> string
Generates a URI string that represents the data in the Url object. The URI will typically have the scheme of route: even if the object was constructed using an entity: or internal: scheme. A internal: URI that does not match a Drupal route with be returned here with the base: scheme, and external URLs will be returned in their original form. @return string A URI representation of the Url object data. Defined in <ROOT>core/lib/Drupal/Core/Url.php:512
- →protected static fromEntityUri(array $uri_parts, array $options, $uri) -> \Drupal\Core\Url
Create a new Url object for entity URIs. @param array $uri_parts Parts from an URI of the form entity:{entity_type}/{entity_id} as from parse_url(). @param array $options An array of options, see \Drupal\Core\Url::fromUri() for details. @param string $uri The original entered URI. @return \Drupal\Core\Url A new Url object for an entity's canonical route. @throws \InvalidArgumentException Thrown if the entity URI is invalid. Defined in <ROOT>core/lib/Drupal/Core/Url.php:341
- →protected static fromInternalUri(array $uri_parts, array $options) -> \Drupal\Core\Url
Creates a new Url object for 'internal:' URIs. Important note: the URI minus the scheme can NOT simply be validated by a \Drupal\Core\Path\PathValidatorInterface implementation. The semantics of the 'internal:' URI scheme are different: - PathValidatorInterface accepts paths without a leading slash (e.g. 'node/add') as well as 2 special paths: '<front>' and '<none>', which are mapped to the correspondingly named routes. - 'internal:' URIs store paths with a leading slash that represents the root — i.e. the front page — (e.g. 'internal:/node/add'), and doesn't have any exceptions. To clarify, a few examples of path plus corresponding 'internal:' URI: - 'node/add' -> 'internal:/node/add' - 'node/add?foo=bar' -> 'internal:/node/add?foo=bar' - 'node/add#kitten' -> 'internal:/node/add#kitten' - '<front>' -> 'internal:/' - '<front>foo=bar' -> 'internal:/?foo=bar' - '<front>#kitten' -> 'internal:/#kitten' - '<none>' -> 'internal:' - '<none>foo=bar' -> 'internal:?foo=bar' - '<none>#kitten' -> 'internal:#kitten' Therefore, when using a PathValidatorInterface to validate 'internal:' URIs, we must map: - 'internal:' (path component is '') to the special '<none>' path - 'internal:/' (path component is '/') to the special '<front>' path - 'internal:/some-path' (path component is '/some-path') to 'some-path' @param array $uri_parts Parts from an URI of the form internal:{path} as from parse_url(). @param array $options An array of options, see \Drupal\Core\Url::fromUri() for details. @return \Drupal\Core\Url A new Url object for a 'internal:' URI. @throws \InvalidArgumentException Thrown when the URI's path component doesn't have a leading slash. Defined in <ROOT>core/lib/Drupal/Core/Url.php:391
- →protected static fromRouteUri(array $uri_parts, array $options, $uri) -> \Drupal\Core\Url
Creates a new Url object for 'route:' URIs. @param array $uri_parts Parts from an URI of the form route:{route_name};{route_parameters} as from parse_url(), where the path is the route name optionally followed by a ";" followed by route parameters in key=value format with & separators. @param array $options An array of options, see \Drupal\Core\Url::fromUri() for details. @param string $uri The original passed in URI. @return \Drupal\Core\Url A new Url object for a 'route:' URI. @throws \InvalidArgumentException Thrown when the route URI does not have a route name. Defined in <ROOT>core/lib/Drupal/Core/Url.php:440
- →protected accessManager() -> \Drupal\Core\Access\AccessManagerInterface
@return \Drupal\Core\Access\AccessManagerInterface Defined in <ROOT>core/lib/Drupal/Core/Url.php:830
- →protected setUnrouted() -> $this
Sets this Url to encapsulate an unrouted URI. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:490
- →protected unroutedUrlAssembler() -> \Drupal\Core\Utility\UnroutedUrlAssemblerInterface
Gets the unrouted URL assembler for non-Drupal URLs. @return \Drupal\Core\Utility\UnroutedUrlAssemblerInterface The unrouted URL assembler. Defined in <ROOT>core/lib/Drupal/Core/Url.php:856
- →protected urlGenerator() -> \Drupal\Core\Routing\UrlGeneratorInterface
Gets the URL generator. @return \Drupal\Core\Routing\UrlGeneratorInterface The URL generator. Defined in <ROOT>core/lib/Drupal/Core/Url.php:843
- 'title' => string UTF-8(8) "Français"
- →'language' => Drupal\language\Entity\ConfigurableLanguage(24)
- contents
- Available methods (98)
- Static class properties (14)
- protected id -> string(2) "fr"
- protected label -> string UTF-8(8) "Français"
- protected direction -> string(3) "ltr"
- protected weight -> integer0
- protected locked -> boolFALSE
- protected preSaveMultilingual -> NULL
- protected originalId -> string(2) "fr"
- protected status -> boolTRUE
- protected uuid -> string(36) "7bca2d09-7af5-4f40-b4af-c94b9c11694b"
- private isSyncing -> boolFALSE
- private isUninstalling -> boolFALSE
- protected langcode -> string(2) "fr"
- protected third_party_settings -> array(0)
- protected _core -> array(0)
- protected trustedData -> boolFALSE
- protected entityTypeId -> string(21) "configurable_language"
- protected enforceIsNew -> NULL
- protected typedData -> NULL
- →protected cacheContexts -> array(1)
- string(28) "languages:language_interface"
- protected cacheTags -> array(0)
- protected cacheMaxAge -> integer-1
- protected _serviceIds -> array(0)
- protected _entityStorages -> array(0)
- protected dependencies -> array(0)
- →public static create(array $values = array())
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:544
- →public static createFromLangcode($langcode) -> $this
Creates a configurable language object from a langcode. @param string $langcode The language code to use to create the object. @return $this @see \Drupal\Core\Language\LanguageManager::getStandardLanguageList() Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:244
- →public static load($id)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:524
- →public static loadMultiple(array $ids = NULL)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:534
- →public static postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities)
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:163
- →public static postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:475
- →public static preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:450
- →public static preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities)
{@inheritdoc} @throws \DeleteDefaultLanguageException Exception thrown if we're trying to delete the default language entity. This is not allowed as a site must have a default language. Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:151
- →public static sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b)
Helper callback for uasort() to sort configuration entities by weight and label. Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:251
- →public __construct(array $values, $entity_type)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:112
- →public __sleep()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:353
- →public __wakeup()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:65
- →public access($operation, Drupal\Core\Session\AccountInterface $account = NULL, $return_as_object = false)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:358
- →public addCacheContexts(array $cache_contexts)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:31
- →public addCacheTags(array $cache_tags)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:41
- →public addCacheableDependency($other_object)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- →public bundle()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:159
- →public calculateDependencies()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:379
- →public createDuplicate()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- →public delete()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:397
- →public disable()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:188
- →public enable()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:181
- →public enforceIsNew($value = true)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:143
- →public get($property_name)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:157
- →public getCacheContexts()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:488
- →public getCacheMaxAge()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:517
- →public getCacheTags()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:507
- →public getCacheTagsToInvalidate()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:439
- →public getConfigDependencyKey()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:646
- →public getConfigDependencyName()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:482
- →public getConfigTarget()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:489
- →public getDependencies()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:468
- →public getDirection()
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:215
- →public getEntityType()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:423
- →public getEntityTypeId()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:152
- →public getId()
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:208
- →public getName()
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:192
- →public getOriginalId()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:126
- →public getThirdPartyProviders()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:573
- →public getThirdPartySetting($module, $key, $default = NULL)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:541
- →public getThirdPartySettings($module)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:553
- →public getTypedData()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:627
- →public getWeight()
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:222
- →public hasLinkTemplate($rel)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:251
- →public hasTrustedData()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:629
- →public id()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:122
- →public isDefault()
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:95
- →public isInstallable()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:614
- →public isLocked()
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:102
- →public isNew()
Overrides Entity::isNew(). EntityInterface::enforceIsNew() is only supported for newly created configuration entities but has no effect after saving, since each configuration entity is unique. Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:150
- →public isSyncing()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:219
- →public isUninstalling()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:233
- →public label()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:166
- →public language()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:372
- →public link($text = NULL, $rel = edit-form, array $options = array())
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:422
- →public mergeCacheMaxAge($max_age)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:51
- →public onDependencyRemoval(array $dependencies)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:500
- →public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:456
- →public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true)
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:120
- →public preSave(Drupal\Core\Entity\EntityStorageInterface $storage)
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:109
- →public referencedEntities()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:481
- →public save()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:636
- →public set($property_name, $value)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:164
- →public setName($name)
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:199
- →public setOriginalId($id)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:133
- →public setStatus($status)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:195
- →public setSyncing($syncing)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:210
- →public setThirdPartySetting($module, $key, $value)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:533
- →public setUninstalling($uninstalling)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:226
- →public setWeight($weight)
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:229
- →public status()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:203
- →public toArray()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:265
- →public toLink($text = NULL, $rel = canonical, array $options = array())
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:276
- →public toUrl($rel = edit-form, array $options = array())
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:430
- →public traitSleep()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:30
- →public trustData()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:621
- →public unsetThirdPartySetting($module, $key)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:560
- →public uriRelationships()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:336
- →public url($rel = edit-form, $options = array())
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:414
- →public urlInfo($rel = edit-form, array $options = array())
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:405
- →public uuid()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:129
- →protected static getConfigManager() -> \Drupal\Core\Config\ConfigManager
Gets the configuration manager. @return \Drupal\Core\Config\ConfigManager The configuration manager. Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:607
- →protected static getDefaultLangcode() -> string
Gets the default langcode. @return string The current default langcode. Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:184
- →protected static invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities)
{@inheritdoc} Override to never invalidate the individual entities' cache tags; the config system already invalidates them. Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:526
- →protected addDependencies(array $dependencies)
Adds multiple dependencies. @param array $dependencies An array of dependencies keyed by the type of dependency. One example: @code array( 'module' => array( 'node', 'field', 'image', ), ); @endcode @see \Drupal\Core\Entity\DependencyTrait::addDependency Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- →protected addDependency($type, $name)
Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). Note that this function should only be called from implementations of \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), as dependencies are recalculated during every entity save. @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:454
- →protected addDependencyTrait($type, $name) -> $this
Adds a dependency. @param string $type Type of dependency being added: 'module', 'theme', 'config', 'content'. @param string $name If $type is 'module' or 'theme', the name of the module or theme. If $type is 'config' or 'content', the result of EntityInterface::getConfigDependencyName(). @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() @return $this Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- →protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance)
Calculates and adds dependencies of a specific plugin instance. Dependencies are added for the module that provides the plugin, as well as any dependencies declared by the instance's calculateDependencies() method, if it implements \Drupal\Component\Plugin\DependentPluginInterface. @param \Drupal\Component\Plugin\PluginInspectionInterface $instance The plugin instance. Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:29
- →protected entityManager() -> \Drupal\Core\Entity\EntityManagerInterface
Gets the entity manager. @return \Drupal\Core\Entity\EntityManagerInterface @deprecated in Drupal 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal::entityTypeManager() instead in most cases. If the needed method is not on \Drupal\Core\Entity\EntityTypeManagerInterface, see the deprecated \Drupal\Core\Entity\EntityManager to find the correct interface or service. Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:79
- →protected entityTypeBundleInfo() -> \Drupal\Core\Entity\EntityTypeBundleInfoInterface
Gets the entity type bundle info service. @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:97
- →protected entityTypeManager() -> \Drupal\Core\Entity\EntityTypeManagerInterface
Gets the entity type manager. @return \Drupal\Core\Entity\EntityTypeManagerInterface Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:88
- →protected getTypedConfig() -> \Drupal\Core\Config\TypedConfigManagerInterface
Gets the typed config manager. @return \Drupal\Core\Config\TypedConfigManagerInterface Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:306
- →protected invalidateTagsOnSave($update)
{@inheritdoc} Override to never invalidate the entity's cache tag; the config system already invalidates it. Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:516
- →protected languageManager() -> \Drupal\Core\Language\LanguageManagerInterface
Gets the language manager. @return \Drupal\Core\Language\LanguageManagerInterface Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:106
- →protected linkTemplates() -> array
Gets an array link templates. @return array An array of link templates containing paths. Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:262
- →protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability) -> $this
Sets cacheability; useful for value object constructors. @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability The cacheability to set. @return $this Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- →protected urlRouteParameters($rel) -> array
Gets an array of placeholders for this entity. Individual entity classes may override this method to add additional placeholders if desired. If so, they should be sure to replicate the property caching logic. @param string $rel The link relationship type, for example: canonical or edit-form. @return array An array of URI placeholders. Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:315
- →protected uuidGenerator() -> \Drupal\Component\Uuid\UuidInterface
Gets the UUID generator. @return \Drupal\Component\Uuid\UuidInterface Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:115
- constant LANGCODE_SYSTEM :: string(6) "system"
- constant LANGCODE_NOT_SPECIFIED :: string(3) "und"
- constant LANGCODE_NOT_APPLICABLE :: string(3) "zxx"
- constant LANGCODE_DEFAULT :: string(9) "x-default"
- constant LANGCODE_SITE_DEFAULT :: string(12) "site_default"
- constant STATE_CONFIGURABLE :: integer1
- constant STATE_LOCKED :: integer2
- constant STATE_ALL :: integer3
- constant STATE_SITE_DEFAULT :: integer4
- constant TYPE_CONTENT :: string(16) "language_content"
- constant TYPE_INTERFACE :: string(18) "language_interface"
- constant TYPE_URL :: string(12) "language_url"
- constant DIRECTION_LTR :: string(3) "ltr"
- constant DIRECTION_RTL :: string(3) "rtl"
- →'attributes' => array(1)
- →'class' => array(1)
- string(13) "language-link"
- 'query' => array(0)
- →'en' => array(5)
- →'url' => Drupal\Core\Url(12)
- contents
- Available methods (36)
- protected urlGenerator -> NULL
- protected urlAssembler -> NULL
- protected accessManager -> NULL
- protected routeName -> string(21) "entity.node.canonical"
- protected routeParameters -> array(0)
- protected options -> array(0)
- protected external -> boolFALSE
- protected unrouted -> boolFALSE
- protected uri -> NULL
- protected internalPath -> NULL
- protected _serviceIds -> array(0)
- protected _entityStorages -> array(0)
- →public static createFromRequest(Symfony\Component\HttpFoundation\Request $request) -> static
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 in the Url object returned by this method. @param \Symfony\Component\HttpFoundation\Request $request A request object. @return static A Url object. Warning: the object is created even if the current user would get an access denied running the same request via the normal page flow. @throws \Drupal\Core\Routing\MatchingRouteNotFoundException Thrown when the request cannot be matched. Defined in <ROOT>core/lib/Drupal/Core/Url.php:476
- →public static fromRoute($route_name, $route_parameters = array(), $options = array()) -> \Drupal\Core\Url
Creates a new Url object for a URL that has a Drupal route. This method is for URLs that have Drupal routes (that is, most pages generated by Drupal). For non-routed local URIs relative to the base path (like robots.txt) use Url::fromUri() with the base: scheme. @param string $route_name The name of the route @param array $route_parameters (optional) An associative array of route parameter names and values. @param array $options See \Drupal\Core\Url::fromUri() for details. @return \Drupal\Core\Url A new Url object for a routed (internal to Drupal) URL. @see \Drupal\Core\Url::fromUserInput() @see \Drupal\Core\Url::fromUri() Defined in <ROOT>core/lib/Drupal/Core/Url.php:141
- →public static fromRouteMatch(Drupal\Core\Routing\RouteMatchInterface $route_match) -> $this
Creates a new URL object from a route match. @param \Drupal\Core\Routing\RouteMatchInterface $route_match The route match. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:153
- →public static fromUri($uri, $options = array()) -> \Drupal\Core\Url
Creates a new Url object from a URI. This method is for generating URLs for URIs that: - do not have Drupal routes: both external URLs and unrouted local URIs like base:robots.txt - do have a Drupal route but have a custom scheme to simplify linking. Currently, there is only the entity: scheme (This allows URIs of the form entity:{entity_type}/{entity_id}. For example: entity:node/1 resolves to the entity.node.canonical route with a node parameter of 1.) For URLs that have Drupal routes (that is, most pages generated by Drupal), use Url::fromRoute(). @param string $uri The URI of the resource including the scheme. For user input that may correspond to a Drupal route, use internal: for the scheme. For paths that are known not to be handled by the Drupal routing system (such as static files), use base: for the scheme to get a link relative to the Drupal base path (like the <base> HTML element). For a link to an entity you may use entity:{entity_type}/{entity_id} URIs. The internal: scheme should be avoided except when processing actual user input that may or may not correspond to a Drupal route. Normally use Url::fromRoute() for code linking to any any Drupal page. @param array $options (optional) An associative array of additional URL options, with the following elements: - 'query': An array of query key/value-pairs (without any URL-encoding) to append to the URL. - 'fragment': A fragment identifier (named anchor) to append to the URL. Do not include the leading '#' character. - 'absolute': Defaults to FALSE. Whether to force the output to be an absolute link (beginning with http:). Useful for links that will be displayed outside the site, such as in an RSS feed. - 'attributes': An associative array of HTML attributes that will be added to the anchor tag if you use the \Drupal\Core\Link class to make the link. - 'language': An optional language object used to look up the alias for the URL. If $options['language'] is omitted, it defaults to the current language for the language type LanguageInterface::TYPE_URL. - 'https': Whether this URL should point to a secure location. If not defined, the current scheme is used, so the user stays on HTTP or HTTPS respectively. TRUE enforces HTTPS and FALSE enforces HTTP. @return \Drupal\Core\Url A new Url object with properties depending on the URI scheme. Call the access() method on this to do access checking. @throws \InvalidArgumentException Thrown when the passed in path has no scheme. @see \Drupal\Core\Url::fromRoute() @see \Drupal\Core\Url::fromUserInput() Defined in <ROOT>core/lib/Drupal/Core/Url.php:266
- →public static fromUserInput($user_input, $options = array()) -> static
Creates a Url object for a relative URI reference submitted by user input. Use this method to create a URL for user-entered paths that may or may not correspond to a valid Drupal route. @param string $user_input User input for a link or path. The first character must be one of the following characters: - '/': A path within the current site. This path might be to a Drupal route (e.g., '/admin'), to a file (e.g., '/README.txt'), or to something processed by a non-Drupal script (e.g., '/not/a/drupal/page'). If the path matches a Drupal route, then the URL generation will include Drupal's path processors (e.g., language-prefixing and aliasing). Otherwise, the URL generation will just append the passed-in path to Drupal's base path. - '?': A query string for the current page or resource. - '#': A fragment (jump-link) on the current page or resource. This helps reduce ambiguity for user-entered links and paths, and supports user interfaces where users may normally use auto-completion to search for existing resources, but also may type one of these characters to link to (e.g.) a specific path on the site. (With regard to the URI specification, the user input is treated as a @link https://tools.ietf.org/html/rfc3986#section-4.2 relative URI reference @endlink where the relative part is of type @link https://tools.ietf.org/html/rfc3986#section-3.3 path-abempty @endlink.) @param array $options (optional) An array of options. See Url::fromUri() for details. @return static A new Url object based on user input. @throws \InvalidArgumentException Thrown when the user input does not begin with one of the following characters: '/', '?', or '#'. Defined in <ROOT>core/lib/Drupal/Core/Url.php:198
- →public static renderAccess(array $element) -> bool
Checks a Url render element against applicable access check services. @param array $element A render element as returned from \Drupal\Core\Url::toRenderArray(). @return bool Returns TRUE if the current user has access to the url, otherwise FALSE. Defined in <ROOT>core/lib/Drupal/Core/Url.php:823
- →public __construct($route_name, $route_parameters = array(), $options = array())
Constructs a new Url object. In most cases, use Url::fromRoute() or Url::fromUri() rather than constructing Url objects directly in order to avoid ambiguity and make your code more self-documenting. @param string $route_name The name of the route @param array $route_parameters (optional) An associative array of parameter names and values. @param array $options See \Drupal\Core\Url::fromUri() for details. @see static::fromRoute() @see static::fromUri() @todo Update this documentation for non-routed URIs in https://www.drupal.org/node/2346787 Defined in <ROOT>core/lib/Drupal/Core/Url.php:115
- →public __sleep()
{@inheritdoc} Defined in <ROOT>core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:30
- →public __wakeup()
{@inheritdoc} Defined in <ROOT>core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:65
- →public access(Drupal\Core\Session\AccountInterface $account = NULL) -> bool
Checks this Url object against applicable access check services. Determines whether the route is accessible or not. @param \Drupal\Core\Session\AccountInterface $account (optional) Run access checks for this account. Defaults to the current user. @return bool Returns TRUE if the user has access to the url, otherwise FALSE. Defined in <ROOT>core/lib/Drupal/Core/Url.php:807
- →public getInternalPath() -> string
Returns the internal path (system path) for this route. This path will not include any prefixes, fragments, or query strings. @return string The internal path for this route. @throws \UnexpectedValueException. If this is a URI with no corresponding system path. Defined in <ROOT>core/lib/Drupal/Core/Url.php:784
- →public getOption($name) -> mixed
Gets a specific option. See \Drupal\Core\Url::fromUri() for details on the options. @param string $name The name of the option. @return mixed The value for a specific option, or NULL if it does not exist. Defined in <ROOT>core/lib/Drupal/Core/Url.php:639
- →public getOptions() -> array
Returns the URL options. @return array The array of options. See \Drupal\Core\Url::fromUri() for details on what it contains. Defined in <ROOT>core/lib/Drupal/Core/Url.php:624
- →public getRouteName() -> string
Returns the route name. @return string @throws \UnexpectedValueException. If this is a URI with no corresponding route. Defined in <ROOT>core/lib/Drupal/Core/Url.php:553
- →public getRouteParameters() -> array
Returns the route parameters. @return array @throws \UnexpectedValueException. If this is a URI with no corresponding route. Defined in <ROOT>core/lib/Drupal/Core/Url.php:569
- →public getUri() -> string
Returns the URI value for this Url object. Only to be used if self::$unrouted is TRUE. @return string A URI not connected to a route. May be an external URL. @throws \UnexpectedValueException Thrown when the URI was requested for a routed URL. Defined in <ROOT>core/lib/Drupal/Core/Url.php:706
- →public isExternal() -> bool
Indicates if this Url is external. @return bool Defined in <ROOT>core/lib/Drupal/Core/Url.php:532
- →public isRouted() -> bool
Indicates if this Url has a Drupal route. @return bool Defined in <ROOT>core/lib/Drupal/Core/Url.php:541
- →public mergeOptions($options) -> $this
Merges the URL options with any currently set. In the case of conflict with existing options, the new options will replace the existing options. @param array $options The array of options. See \Drupal\Core\Url::fromUri() for details on what it contains. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:690
- →public setAbsolute($absolute = true) -> $this
Sets the value of the absolute option for this Url. @param bool $absolute (optional) Whether to make this Url absolute or not. Defaults to TRUE. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:722
- →public setOption($name, $value) -> $this
Sets a specific option. See \Drupal\Core\Url::fromUri() for details on the options. @param string $name The name of the option. @param mixed $value The option value. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:673
- →public setOptions($options) -> $this
Sets the URL options. @param array $options The array of options. See \Drupal\Core\Url::fromUri() for details on what it contains. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:656
- →public setRouteParameter($key, $value) -> $this
Sets a specific route parameter. @param string $key The key of the route parameter. @param mixed $value The route parameter. @return $this @throws \UnexpectedValueException. If this is a URI with no corresponding route. Defined in <ROOT>core/lib/Drupal/Core/Url.php:609
- →public setRouteParameters($parameters) -> $this
Sets the route parameters. @param array $parameters The array of parameters. @return $this @throws \UnexpectedValueException. If this is a URI with no corresponding route. Defined in <ROOT>core/lib/Drupal/Core/Url.php:588
- →public setUnroutedUrlAssembler(Drupal\Core\Utility\UnroutedUrlAssemblerInterface $url_assembler) -> $this
Sets the unrouted URL assembler. @param \Drupal\Core\Utility\UnroutedUrlAssemblerInterface $url_assembler The unrouted URL assembler. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:885
- →public setUrlGenerator(Drupal\Core\Routing\UrlGeneratorInterface $url_generator = NULL) -> $this
Sets the URL generator. @param \Drupal\Core\Routing\UrlGeneratorInterface $url_generator (optional) The URL generator, specify NULL to reset it. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:871
- →public toRenderArray() -> array
Returns the route information for a render array. @return array An associative array suitable for a render array. Defined in <ROOT>core/lib/Drupal/Core/Url.php:762
- →public toString($collect_bubbleable_metadata = false) -> string|\Drupal\Core\GeneratedUrl
Generates the string URL representation for this Url object. For an external URL, the string will contain the input plus any query string or fragment specified by the options array. If this Url object was constructed from a Drupal route or from an internal URI (URIs using the internal:, base:, or entity: schemes), the returned string will either be a relative URL like /node/1 or an absolute URL like http://example.com/node/1 depending on the options array, plus any specified query string or fragment. @param bool $collect_bubbleable_metadata (optional) Defaults to FALSE. When TRUE, both the generated URL and its associated bubbleable metadata are returned. @return string|\Drupal\Core\GeneratedUrl A string URL. When $collect_bubbleable_metadata is TRUE, a GeneratedUrl object is returned, containing the generated URL plus bubbleable metadata. Defined in <ROOT>core/lib/Drupal/Core/Url.php:748
- →public toUriString() -> string
Generates a URI string that represents the data in the Url object. The URI will typically have the scheme of route: even if the object was constructed using an entity: or internal: scheme. A internal: URI that does not match a Drupal route with be returned here with the base: scheme, and external URLs will be returned in their original form. @return string A URI representation of the Url object data. Defined in <ROOT>core/lib/Drupal/Core/Url.php:512
- →protected static fromEntityUri(array $uri_parts, array $options, $uri) -> \Drupal\Core\Url
Create a new Url object for entity URIs. @param array $uri_parts Parts from an URI of the form entity:{entity_type}/{entity_id} as from parse_url(). @param array $options An array of options, see \Drupal\Core\Url::fromUri() for details. @param string $uri The original entered URI. @return \Drupal\Core\Url A new Url object for an entity's canonical route. @throws \InvalidArgumentException Thrown if the entity URI is invalid. Defined in <ROOT>core/lib/Drupal/Core/Url.php:341
- →protected static fromInternalUri(array $uri_parts, array $options) -> \Drupal\Core\Url
Creates a new Url object for 'internal:' URIs. Important note: the URI minus the scheme can NOT simply be validated by a \Drupal\Core\Path\PathValidatorInterface implementation. The semantics of the 'internal:' URI scheme are different: - PathValidatorInterface accepts paths without a leading slash (e.g. 'node/add') as well as 2 special paths: '<front>' and '<none>', which are mapped to the correspondingly named routes. - 'internal:' URIs store paths with a leading slash that represents the root — i.e. the front page — (e.g. 'internal:/node/add'), and doesn't have any exceptions. To clarify, a few examples of path plus corresponding 'internal:' URI: - 'node/add' -> 'internal:/node/add' - 'node/add?foo=bar' -> 'internal:/node/add?foo=bar' - 'node/add#kitten' -> 'internal:/node/add#kitten' - '<front>' -> 'internal:/' - '<front>foo=bar' -> 'internal:/?foo=bar' - '<front>#kitten' -> 'internal:/#kitten' - '<none>' -> 'internal:' - '<none>foo=bar' -> 'internal:?foo=bar' - '<none>#kitten' -> 'internal:#kitten' Therefore, when using a PathValidatorInterface to validate 'internal:' URIs, we must map: - 'internal:' (path component is '') to the special '<none>' path - 'internal:/' (path component is '/') to the special '<front>' path - 'internal:/some-path' (path component is '/some-path') to 'some-path' @param array $uri_parts Parts from an URI of the form internal:{path} as from parse_url(). @param array $options An array of options, see \Drupal\Core\Url::fromUri() for details. @return \Drupal\Core\Url A new Url object for a 'internal:' URI. @throws \InvalidArgumentException Thrown when the URI's path component doesn't have a leading slash. Defined in <ROOT>core/lib/Drupal/Core/Url.php:391
- →protected static fromRouteUri(array $uri_parts, array $options, $uri) -> \Drupal\Core\Url
Creates a new Url object for 'route:' URIs. @param array $uri_parts Parts from an URI of the form route:{route_name};{route_parameters} as from parse_url(), where the path is the route name optionally followed by a ";" followed by route parameters in key=value format with & separators. @param array $options An array of options, see \Drupal\Core\Url::fromUri() for details. @param string $uri The original passed in URI. @return \Drupal\Core\Url A new Url object for a 'route:' URI. @throws \InvalidArgumentException Thrown when the route URI does not have a route name. Defined in <ROOT>core/lib/Drupal/Core/Url.php:440
- →protected accessManager() -> \Drupal\Core\Access\AccessManagerInterface
@return \Drupal\Core\Access\AccessManagerInterface Defined in <ROOT>core/lib/Drupal/Core/Url.php:830
- →protected setUnrouted() -> $this
Sets this Url to encapsulate an unrouted URI. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:490
- →protected unroutedUrlAssembler() -> \Drupal\Core\Utility\UnroutedUrlAssemblerInterface
Gets the unrouted URL assembler for non-Drupal URLs. @return \Drupal\Core\Utility\UnroutedUrlAssemblerInterface The unrouted URL assembler. Defined in <ROOT>core/lib/Drupal/Core/Url.php:856
- →protected urlGenerator() -> \Drupal\Core\Routing\UrlGeneratorInterface
Gets the URL generator. @return \Drupal\Core\Routing\UrlGeneratorInterface The URL generator. Defined in <ROOT>core/lib/Drupal/Core/Url.php:843
- 'title' => string(7) "English"
- →'language' => Drupal\language\Entity\ConfigurableLanguage(24)
- contents
- Available methods (98)
- Static class properties (14)
- protected id -> string(2) "en"
- protected label -> string(7) "English"
- protected direction -> string(3) "ltr"
- protected weight -> integer1
- protected locked -> boolFALSE
- protected preSaveMultilingual -> NULL
- protected originalId -> string(2) "en"
- protected status -> boolTRUE
- protected uuid -> string(36) "487b487a-2d5e-4da2-879a-30952f742c08"
- private isSyncing -> boolFALSE
- private isUninstalling -> boolFALSE
- protected langcode -> string(2) "fr"
- protected third_party_settings -> array(0)
- protected _core -> array(0)
- protected trustedData -> boolFALSE
- protected entityTypeId -> string(21) "configurable_language"
- protected enforceIsNew -> NULL
- protected typedData -> NULL
- →protected cacheContexts -> array(1)
- string(28) "languages:language_interface"
- protected cacheTags -> array(0)
- protected cacheMaxAge -> integer-1
- protected _serviceIds -> array(0)
- protected _entityStorages -> array(0)
- protected dependencies -> array(0)
- →public static create(array $values = array())
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:544
- →public static createFromLangcode($langcode) -> $this
Creates a configurable language object from a langcode. @param string $langcode The language code to use to create the object. @return $this @see \Drupal\Core\Language\LanguageManager::getStandardLanguageList() Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:244
- →public static load($id)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:524
- →public static loadMultiple(array $ids = NULL)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:534
- →public static postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities)
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:163
- →public static postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:475
- →public static preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:450
- →public static preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities)
{@inheritdoc} @throws \DeleteDefaultLanguageException Exception thrown if we're trying to delete the default language entity. This is not allowed as a site must have a default language. Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:151
- →public static sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b)
Helper callback for uasort() to sort configuration entities by weight and label. Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:251
- →public __construct(array $values, $entity_type)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:112
- →public __sleep()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:353
- →public __wakeup()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:65
- →public access($operation, Drupal\Core\Session\AccountInterface $account = NULL, $return_as_object = false)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:358
- →public addCacheContexts(array $cache_contexts)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:31
- →public addCacheTags(array $cache_tags)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:41
- →public addCacheableDependency($other_object)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- →public bundle()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:159
- →public calculateDependencies()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:379
- →public createDuplicate()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- →public delete()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:397
- →public disable()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:188
- →public enable()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:181
- →public enforceIsNew($value = true)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:143
- →public get($property_name)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:157
- →public getCacheContexts()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:488
- →public getCacheMaxAge()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:517
- →public getCacheTags()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:507
- →public getCacheTagsToInvalidate()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:439
- →public getConfigDependencyKey()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:646
- →public getConfigDependencyName()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:482
- →public getConfigTarget()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:489
- →public getDependencies()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:468
- →public getDirection()
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:215
- →public getEntityType()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:423
- →public getEntityTypeId()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:152
- →public getId()
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:208
- →public getName()
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:192
- →public getOriginalId()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:126
- →public getThirdPartyProviders()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:573
- →public getThirdPartySetting($module, $key, $default = NULL)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:541
- →public getThirdPartySettings($module)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:553
- →public getTypedData()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:627
- →public getWeight()
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:222
- →public hasLinkTemplate($rel)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:251
- →public hasTrustedData()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:629
- →public id()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:122
- →public isDefault()
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:95
- →public isInstallable()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:614
- →public isLocked()
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:102
- →public isNew()
Overrides Entity::isNew(). EntityInterface::enforceIsNew() is only supported for newly created configuration entities but has no effect after saving, since each configuration entity is unique. Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:150
- →public isSyncing()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:219
- →public isUninstalling()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:233
- →public label()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:166
- →public language()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:372
- →public link($text = NULL, $rel = edit-form, array $options = array())
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:422
- →public mergeCacheMaxAge($max_age)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:51
- →public onDependencyRemoval(array $dependencies)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:500
- →public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:456
- →public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true)
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:120
- →public preSave(Drupal\Core\Entity\EntityStorageInterface $storage)
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:109
- →public referencedEntities()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:481
- →public save()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:636
- →public set($property_name, $value)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:164
- →public setName($name)
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:199
- →public setOriginalId($id)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:133
- →public setStatus($status)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:195
- →public setSyncing($syncing)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:210
- →public setThirdPartySetting($module, $key, $value)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:533
- →public setUninstalling($uninstalling)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:226
- →public setWeight($weight)
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:229
- →public status()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:203
- →public toArray()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:265
- →public toLink($text = NULL, $rel = canonical, array $options = array())
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:276
- →public toUrl($rel = edit-form, array $options = array())
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:430
- →public traitSleep()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:30
- →public trustData()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:621
- →public unsetThirdPartySetting($module, $key)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:560
- →public uriRelationships()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:336
- →public url($rel = edit-form, $options = array())
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:414
- →public urlInfo($rel = edit-form, array $options = array())
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:405
- →public uuid()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:129
- →protected static getConfigManager() -> \Drupal\Core\Config\ConfigManager
Gets the configuration manager. @return \Drupal\Core\Config\ConfigManager The configuration manager. Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:607
- →protected static getDefaultLangcode() -> string
Gets the default langcode. @return string The current default langcode. Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:184
- →protected static invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities)
{@inheritdoc} Override to never invalidate the individual entities' cache tags; the config system already invalidates them. Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:526
- →protected addDependencies(array $dependencies)
Adds multiple dependencies. @param array $dependencies An array of dependencies keyed by the type of dependency. One example: @code array( 'module' => array( 'node', 'field', 'image', ), ); @endcode @see \Drupal\Core\Entity\DependencyTrait::addDependency Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- →protected addDependency($type, $name)
Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). Note that this function should only be called from implementations of \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), as dependencies are recalculated during every entity save. @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:454
- →protected addDependencyTrait($type, $name) -> $this
Adds a dependency. @param string $type Type of dependency being added: 'module', 'theme', 'config', 'content'. @param string $name If $type is 'module' or 'theme', the name of the module or theme. If $type is 'config' or 'content', the result of EntityInterface::getConfigDependencyName(). @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() @return $this Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- →protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance)
Calculates and adds dependencies of a specific plugin instance. Dependencies are added for the module that provides the plugin, as well as any dependencies declared by the instance's calculateDependencies() method, if it implements \Drupal\Component\Plugin\DependentPluginInterface. @param \Drupal\Component\Plugin\PluginInspectionInterface $instance The plugin instance. Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:29
- →protected entityManager() -> \Drupal\Core\Entity\EntityManagerInterface
Gets the entity manager. @return \Drupal\Core\Entity\EntityManagerInterface @deprecated in Drupal 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal::entityTypeManager() instead in most cases. If the needed method is not on \Drupal\Core\Entity\EntityTypeManagerInterface, see the deprecated \Drupal\Core\Entity\EntityManager to find the correct interface or service. Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:79
- →protected entityTypeBundleInfo() -> \Drupal\Core\Entity\EntityTypeBundleInfoInterface
Gets the entity type bundle info service. @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:97
- →protected entityTypeManager() -> \Drupal\Core\Entity\EntityTypeManagerInterface
Gets the entity type manager. @return \Drupal\Core\Entity\EntityTypeManagerInterface Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:88
- →protected getTypedConfig() -> \Drupal\Core\Config\TypedConfigManagerInterface
Gets the typed config manager. @return \Drupal\Core\Config\TypedConfigManagerInterface Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:306
- →protected invalidateTagsOnSave($update)
{@inheritdoc} Override to never invalidate the entity's cache tag; the config system already invalidates it. Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:516
- →protected languageManager() -> \Drupal\Core\Language\LanguageManagerInterface
Gets the language manager. @return \Drupal\Core\Language\LanguageManagerInterface Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:106
- →protected linkTemplates() -> array
Gets an array link templates. @return array An array of link templates containing paths. Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:262
- →protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability) -> $this
Sets cacheability; useful for value object constructors. @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability The cacheability to set. @return $this Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- →protected urlRouteParameters($rel) -> array
Gets an array of placeholders for this entity. Individual entity classes may override this method to add additional placeholders if desired. If so, they should be sure to replicate the property caching logic. @param string $rel The link relationship type, for example: canonical or edit-form. @return array An array of URI placeholders. Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:315
- →protected uuidGenerator() -> \Drupal\Component\Uuid\UuidInterface
Gets the UUID generator. @return \Drupal\Component\Uuid\UuidInterface Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:115
- constant LANGCODE_SYSTEM :: string(6) "system"
- constant LANGCODE_NOT_SPECIFIED :: string(3) "und"
- constant LANGCODE_NOT_APPLICABLE :: string(3) "zxx"
- constant LANGCODE_DEFAULT :: string(9) "x-default"
- constant LANGCODE_SITE_DEFAULT :: string(12) "site_default"
- constant STATE_CONFIGURABLE :: integer1
- constant STATE_LOCKED :: integer2
- constant STATE_ALL :: integer3
- constant STATE_SITE_DEFAULT :: integer4
- constant TYPE_CONTENT :: string(16) "language_content"
- constant TYPE_INTERFACE :: string(18) "language_interface"
- constant TYPE_URL :: string(12) "language_url"
- constant DIRECTION_LTR :: string(3) "ltr"
- constant DIRECTION_RTL :: string(3) "rtl"
- →'attributes' => array(1)
- →'class' => array(1)
- string(13) "language-link"
- 'query' => array(0)
- public method_id -> string(12) "language-url"
- →'en' => stdClass(2)
- →public links -> array(2)
- →'fr' => array(5)
- →'url' => Drupal\Core\Url(12)
- contents
- Available methods (36)
- protected urlGenerator -> NULL
- protected urlAssembler -> NULL
- protected accessManager -> NULL
- protected routeName -> string(21) "entity.node.canonical"
- protected routeParameters -> array(0)
- protected options -> array(0)
- protected external -> boolFALSE
- protected unrouted -> boolFALSE
- protected uri -> NULL
- protected internalPath -> NULL
- protected _serviceIds -> array(0)
- protected _entityStorages -> array(0)
- →public static createFromRequest(Symfony\Component\HttpFoundation\Request $request) -> static
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 in the Url object returned by this method. @param \Symfony\Component\HttpFoundation\Request $request A request object. @return static A Url object. Warning: the object is created even if the current user would get an access denied running the same request via the normal page flow. @throws \Drupal\Core\Routing\MatchingRouteNotFoundException Thrown when the request cannot be matched. Defined in <ROOT>core/lib/Drupal/Core/Url.php:476
- →public static fromRoute($route_name, $route_parameters = array(), $options = array()) -> \Drupal\Core\Url
Creates a new Url object for a URL that has a Drupal route. This method is for URLs that have Drupal routes (that is, most pages generated by Drupal). For non-routed local URIs relative to the base path (like robots.txt) use Url::fromUri() with the base: scheme. @param string $route_name The name of the route @param array $route_parameters (optional) An associative array of route parameter names and values. @param array $options See \Drupal\Core\Url::fromUri() for details. @return \Drupal\Core\Url A new Url object for a routed (internal to Drupal) URL. @see \Drupal\Core\Url::fromUserInput() @see \Drupal\Core\Url::fromUri() Defined in <ROOT>core/lib/Drupal/Core/Url.php:141
- →public static fromRouteMatch(Drupal\Core\Routing\RouteMatchInterface $route_match) -> $this
Creates a new URL object from a route match. @param \Drupal\Core\Routing\RouteMatchInterface $route_match The route match. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:153
- →public static fromUri($uri, $options = array()) -> \Drupal\Core\Url
Creates a new Url object from a URI. This method is for generating URLs for URIs that: - do not have Drupal routes: both external URLs and unrouted local URIs like base:robots.txt - do have a Drupal route but have a custom scheme to simplify linking. Currently, there is only the entity: scheme (This allows URIs of the form entity:{entity_type}/{entity_id}. For example: entity:node/1 resolves to the entity.node.canonical route with a node parameter of 1.) For URLs that have Drupal routes (that is, most pages generated by Drupal), use Url::fromRoute(). @param string $uri The URI of the resource including the scheme. For user input that may correspond to a Drupal route, use internal: for the scheme. For paths that are known not to be handled by the Drupal routing system (such as static files), use base: for the scheme to get a link relative to the Drupal base path (like the <base> HTML element). For a link to an entity you may use entity:{entity_type}/{entity_id} URIs. The internal: scheme should be avoided except when processing actual user input that may or may not correspond to a Drupal route. Normally use Url::fromRoute() for code linking to any any Drupal page. @param array $options (optional) An associative array of additional URL options, with the following elements: - 'query': An array of query key/value-pairs (without any URL-encoding) to append to the URL. - 'fragment': A fragment identifier (named anchor) to append to the URL. Do not include the leading '#' character. - 'absolute': Defaults to FALSE. Whether to force the output to be an absolute link (beginning with http:). Useful for links that will be displayed outside the site, such as in an RSS feed. - 'attributes': An associative array of HTML attributes that will be added to the anchor tag if you use the \Drupal\Core\Link class to make the link. - 'language': An optional language object used to look up the alias for the URL. If $options['language'] is omitted, it defaults to the current language for the language type LanguageInterface::TYPE_URL. - 'https': Whether this URL should point to a secure location. If not defined, the current scheme is used, so the user stays on HTTP or HTTPS respectively. TRUE enforces HTTPS and FALSE enforces HTTP. @return \Drupal\Core\Url A new Url object with properties depending on the URI scheme. Call the access() method on this to do access checking. @throws \InvalidArgumentException Thrown when the passed in path has no scheme. @see \Drupal\Core\Url::fromRoute() @see \Drupal\Core\Url::fromUserInput() Defined in <ROOT>core/lib/Drupal/Core/Url.php:266
- →public static fromUserInput($user_input, $options = array()) -> static
Creates a Url object for a relative URI reference submitted by user input. Use this method to create a URL for user-entered paths that may or may not correspond to a valid Drupal route. @param string $user_input User input for a link or path. The first character must be one of the following characters: - '/': A path within the current site. This path might be to a Drupal route (e.g., '/admin'), to a file (e.g., '/README.txt'), or to something processed by a non-Drupal script (e.g., '/not/a/drupal/page'). If the path matches a Drupal route, then the URL generation will include Drupal's path processors (e.g., language-prefixing and aliasing). Otherwise, the URL generation will just append the passed-in path to Drupal's base path. - '?': A query string for the current page or resource. - '#': A fragment (jump-link) on the current page or resource. This helps reduce ambiguity for user-entered links and paths, and supports user interfaces where users may normally use auto-completion to search for existing resources, but also may type one of these characters to link to (e.g.) a specific path on the site. (With regard to the URI specification, the user input is treated as a @link https://tools.ietf.org/html/rfc3986#section-4.2 relative URI reference @endlink where the relative part is of type @link https://tools.ietf.org/html/rfc3986#section-3.3 path-abempty @endlink.) @param array $options (optional) An array of options. See Url::fromUri() for details. @return static A new Url object based on user input. @throws \InvalidArgumentException Thrown when the user input does not begin with one of the following characters: '/', '?', or '#'. Defined in <ROOT>core/lib/Drupal/Core/Url.php:198
- →public static renderAccess(array $element) -> bool
Checks a Url render element against applicable access check services. @param array $element A render element as returned from \Drupal\Core\Url::toRenderArray(). @return bool Returns TRUE if the current user has access to the url, otherwise FALSE. Defined in <ROOT>core/lib/Drupal/Core/Url.php:823
- →public __construct($route_name, $route_parameters = array(), $options = array())
Constructs a new Url object. In most cases, use Url::fromRoute() or Url::fromUri() rather than constructing Url objects directly in order to avoid ambiguity and make your code more self-documenting. @param string $route_name The name of the route @param array $route_parameters (optional) An associative array of parameter names and values. @param array $options See \Drupal\Core\Url::fromUri() for details. @see static::fromRoute() @see static::fromUri() @todo Update this documentation for non-routed URIs in https://www.drupal.org/node/2346787 Defined in <ROOT>core/lib/Drupal/Core/Url.php:115
- →public __sleep()
{@inheritdoc} Defined in <ROOT>core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:30
- →public __wakeup()
{@inheritdoc} Defined in <ROOT>core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:65
- →public access(Drupal\Core\Session\AccountInterface $account = NULL) -> bool
Checks this Url object against applicable access check services. Determines whether the route is accessible or not. @param \Drupal\Core\Session\AccountInterface $account (optional) Run access checks for this account. Defaults to the current user. @return bool Returns TRUE if the user has access to the url, otherwise FALSE. Defined in <ROOT>core/lib/Drupal/Core/Url.php:807
- →public getInternalPath() -> string
Returns the internal path (system path) for this route. This path will not include any prefixes, fragments, or query strings. @return string The internal path for this route. @throws \UnexpectedValueException. If this is a URI with no corresponding system path. Defined in <ROOT>core/lib/Drupal/Core/Url.php:784
- →public getOption($name) -> mixed
Gets a specific option. See \Drupal\Core\Url::fromUri() for details on the options. @param string $name The name of the option. @return mixed The value for a specific option, or NULL if it does not exist. Defined in <ROOT>core/lib/Drupal/Core/Url.php:639
- →public getOptions() -> array
Returns the URL options. @return array The array of options. See \Drupal\Core\Url::fromUri() for details on what it contains. Defined in <ROOT>core/lib/Drupal/Core/Url.php:624
- →public getRouteName() -> string
Returns the route name. @return string @throws \UnexpectedValueException. If this is a URI with no corresponding route. Defined in <ROOT>core/lib/Drupal/Core/Url.php:553
- →public getRouteParameters() -> array
Returns the route parameters. @return array @throws \UnexpectedValueException. If this is a URI with no corresponding route. Defined in <ROOT>core/lib/Drupal/Core/Url.php:569
- →public getUri() -> string
Returns the URI value for this Url object. Only to be used if self::$unrouted is TRUE. @return string A URI not connected to a route. May be an external URL. @throws \UnexpectedValueException Thrown when the URI was requested for a routed URL. Defined in <ROOT>core/lib/Drupal/Core/Url.php:706
- →public isExternal() -> bool
Indicates if this Url is external. @return bool Defined in <ROOT>core/lib/Drupal/Core/Url.php:532
- →public isRouted() -> bool
Indicates if this Url has a Drupal route. @return bool Defined in <ROOT>core/lib/Drupal/Core/Url.php:541
- →public mergeOptions($options) -> $this
Merges the URL options with any currently set. In the case of conflict with existing options, the new options will replace the existing options. @param array $options The array of options. See \Drupal\Core\Url::fromUri() for details on what it contains. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:690
- →public setAbsolute($absolute = true) -> $this
Sets the value of the absolute option for this Url. @param bool $absolute (optional) Whether to make this Url absolute or not. Defaults to TRUE. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:722
- →public setOption($name, $value) -> $this
Sets a specific option. See \Drupal\Core\Url::fromUri() for details on the options. @param string $name The name of the option. @param mixed $value The option value. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:673
- →public setOptions($options) -> $this
Sets the URL options. @param array $options The array of options. See \Drupal\Core\Url::fromUri() for details on what it contains. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:656
- →public setRouteParameter($key, $value) -> $this
Sets a specific route parameter. @param string $key The key of the route parameter. @param mixed $value The route parameter. @return $this @throws \UnexpectedValueException. If this is a URI with no corresponding route. Defined in <ROOT>core/lib/Drupal/Core/Url.php:609
- →public setRouteParameters($parameters) -> $this
Sets the route parameters. @param array $parameters The array of parameters. @return $this @throws \UnexpectedValueException. If this is a URI with no corresponding route. Defined in <ROOT>core/lib/Drupal/Core/Url.php:588
- →public setUnroutedUrlAssembler(Drupal\Core\Utility\UnroutedUrlAssemblerInterface $url_assembler) -> $this
Sets the unrouted URL assembler. @param \Drupal\Core\Utility\UnroutedUrlAssemblerInterface $url_assembler The unrouted URL assembler. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:885
- →public setUrlGenerator(Drupal\Core\Routing\UrlGeneratorInterface $url_generator = NULL) -> $this
Sets the URL generator. @param \Drupal\Core\Routing\UrlGeneratorInterface $url_generator (optional) The URL generator, specify NULL to reset it. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:871
- →public toRenderArray() -> array
Returns the route information for a render array. @return array An associative array suitable for a render array. Defined in <ROOT>core/lib/Drupal/Core/Url.php:762
- →public toString($collect_bubbleable_metadata = false) -> string|\Drupal\Core\GeneratedUrl
Generates the string URL representation for this Url object. For an external URL, the string will contain the input plus any query string or fragment specified by the options array. If this Url object was constructed from a Drupal route or from an internal URI (URIs using the internal:, base:, or entity: schemes), the returned string will either be a relative URL like /node/1 or an absolute URL like http://example.com/node/1 depending on the options array, plus any specified query string or fragment. @param bool $collect_bubbleable_metadata (optional) Defaults to FALSE. When TRUE, both the generated URL and its associated bubbleable metadata are returned. @return string|\Drupal\Core\GeneratedUrl A string URL. When $collect_bubbleable_metadata is TRUE, a GeneratedUrl object is returned, containing the generated URL plus bubbleable metadata. Defined in <ROOT>core/lib/Drupal/Core/Url.php:748
- →public toUriString() -> string
Generates a URI string that represents the data in the Url object. The URI will typically have the scheme of route: even if the object was constructed using an entity: or internal: scheme. A internal: URI that does not match a Drupal route with be returned here with the base: scheme, and external URLs will be returned in their original form. @return string A URI representation of the Url object data. Defined in <ROOT>core/lib/Drupal/Core/Url.php:512
- →protected static fromEntityUri(array $uri_parts, array $options, $uri) -> \Drupal\Core\Url
Create a new Url object for entity URIs. @param array $uri_parts Parts from an URI of the form entity:{entity_type}/{entity_id} as from parse_url(). @param array $options An array of options, see \Drupal\Core\Url::fromUri() for details. @param string $uri The original entered URI. @return \Drupal\Core\Url A new Url object for an entity's canonical route. @throws \InvalidArgumentException Thrown if the entity URI is invalid. Defined in <ROOT>core/lib/Drupal/Core/Url.php:341
- →protected static fromInternalUri(array $uri_parts, array $options) -> \Drupal\Core\Url
Creates a new Url object for 'internal:' URIs. Important note: the URI minus the scheme can NOT simply be validated by a \Drupal\Core\Path\PathValidatorInterface implementation. The semantics of the 'internal:' URI scheme are different: - PathValidatorInterface accepts paths without a leading slash (e.g. 'node/add') as well as 2 special paths: '<front>' and '<none>', which are mapped to the correspondingly named routes. - 'internal:' URIs store paths with a leading slash that represents the root — i.e. the front page — (e.g. 'internal:/node/add'), and doesn't have any exceptions. To clarify, a few examples of path plus corresponding 'internal:' URI: - 'node/add' -> 'internal:/node/add' - 'node/add?foo=bar' -> 'internal:/node/add?foo=bar' - 'node/add#kitten' -> 'internal:/node/add#kitten' - '<front>' -> 'internal:/' - '<front>foo=bar' -> 'internal:/?foo=bar' - '<front>#kitten' -> 'internal:/#kitten' - '<none>' -> 'internal:' - '<none>foo=bar' -> 'internal:?foo=bar' - '<none>#kitten' -> 'internal:#kitten' Therefore, when using a PathValidatorInterface to validate 'internal:' URIs, we must map: - 'internal:' (path component is '') to the special '<none>' path - 'internal:/' (path component is '/') to the special '<front>' path - 'internal:/some-path' (path component is '/some-path') to 'some-path' @param array $uri_parts Parts from an URI of the form internal:{path} as from parse_url(). @param array $options An array of options, see \Drupal\Core\Url::fromUri() for details. @return \Drupal\Core\Url A new Url object for a 'internal:' URI. @throws \InvalidArgumentException Thrown when the URI's path component doesn't have a leading slash. Defined in <ROOT>core/lib/Drupal/Core/Url.php:391
- →protected static fromRouteUri(array $uri_parts, array $options, $uri) -> \Drupal\Core\Url
Creates a new Url object for 'route:' URIs. @param array $uri_parts Parts from an URI of the form route:{route_name};{route_parameters} as from parse_url(), where the path is the route name optionally followed by a ";" followed by route parameters in key=value format with & separators. @param array $options An array of options, see \Drupal\Core\Url::fromUri() for details. @param string $uri The original passed in URI. @return \Drupal\Core\Url A new Url object for a 'route:' URI. @throws \InvalidArgumentException Thrown when the route URI does not have a route name. Defined in <ROOT>core/lib/Drupal/Core/Url.php:440
- →protected accessManager() -> \Drupal\Core\Access\AccessManagerInterface
@return \Drupal\Core\Access\AccessManagerInterface Defined in <ROOT>core/lib/Drupal/Core/Url.php:830
- →protected setUnrouted() -> $this
Sets this Url to encapsulate an unrouted URI. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:490
- →protected unroutedUrlAssembler() -> \Drupal\Core\Utility\UnroutedUrlAssemblerInterface
Gets the unrouted URL assembler for non-Drupal URLs. @return \Drupal\Core\Utility\UnroutedUrlAssemblerInterface The unrouted URL assembler. Defined in <ROOT>core/lib/Drupal/Core/Url.php:856
- →protected urlGenerator() -> \Drupal\Core\Routing\UrlGeneratorInterface
Gets the URL generator. @return \Drupal\Core\Routing\UrlGeneratorInterface The URL generator. Defined in <ROOT>core/lib/Drupal/Core/Url.php:843
- 'title' => string UTF-8(8) "Français"
- →'language' => Drupal\language\Entity\ConfigurableLanguage(24)
- contents
- Available methods (98)
- Static class properties (14)
- protected id -> string(2) "fr"
- protected label -> string UTF-8(8) "Français"
- protected direction -> string(3) "ltr"
- protected weight -> integer0
- protected locked -> boolFALSE
- protected preSaveMultilingual -> NULL
- protected originalId -> string(2) "fr"
- protected status -> boolTRUE
- protected uuid -> string(36) "7bca2d09-7af5-4f40-b4af-c94b9c11694b"
- private isSyncing -> boolFALSE
- private isUninstalling -> boolFALSE
- protected langcode -> string(2) "fr"
- protected third_party_settings -> array(0)
- protected _core -> array(0)
- protected trustedData -> boolFALSE
- protected entityTypeId -> string(21) "configurable_language"
- protected enforceIsNew -> NULL
- protected typedData -> NULL
- →protected cacheContexts -> array(1)
- string(28) "languages:language_interface"
- protected cacheTags -> array(0)
- protected cacheMaxAge -> integer-1
- protected _serviceIds -> array(0)
- protected _entityStorages -> array(0)
- protected dependencies -> array(0)
- →public static create(array $values = array())
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:544
- →public static createFromLangcode($langcode) -> $this
Creates a configurable language object from a langcode. @param string $langcode The language code to use to create the object. @return $this @see \Drupal\Core\Language\LanguageManager::getStandardLanguageList() Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:244
- →public static load($id)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:524
- →public static loadMultiple(array $ids = NULL)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:534
- →public static postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities)
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:163
- →public static postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:475
- →public static preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:450
- →public static preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities)
{@inheritdoc} @throws \DeleteDefaultLanguageException Exception thrown if we're trying to delete the default language entity. This is not allowed as a site must have a default language. Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:151
- →public static sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b)
Helper callback for uasort() to sort configuration entities by weight and label. Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:251
- →public __construct(array $values, $entity_type)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:112
- →public __sleep()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:353
- →public __wakeup()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:65
- →public access($operation, Drupal\Core\Session\AccountInterface $account = NULL, $return_as_object = false)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:358
- →public addCacheContexts(array $cache_contexts)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:31
- →public addCacheTags(array $cache_tags)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:41
- →public addCacheableDependency($other_object)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- →public bundle()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:159
- →public calculateDependencies()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:379
- →public createDuplicate()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- →public delete()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:397
- →public disable()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:188
- →public enable()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:181
- →public enforceIsNew($value = true)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:143
- →public get($property_name)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:157
- →public getCacheContexts()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:488
- →public getCacheMaxAge()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:517
- →public getCacheTags()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:507
- →public getCacheTagsToInvalidate()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:439
- →public getConfigDependencyKey()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:646
- →public getConfigDependencyName()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:482
- →public getConfigTarget()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:489
- →public getDependencies()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:468
- →public getDirection()
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:215
- →public getEntityType()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:423
- →public getEntityTypeId()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:152
- →public getId()
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:208
- →public getName()
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:192
- →public getOriginalId()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:126
- →public getThirdPartyProviders()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:573
- →public getThirdPartySetting($module, $key, $default = NULL)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:541
- →public getThirdPartySettings($module)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:553
- →public getTypedData()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:627
- →public getWeight()
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:222
- →public hasLinkTemplate($rel)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:251
- →public hasTrustedData()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:629
- →public id()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:122
- →public isDefault()
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:95
- →public isInstallable()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:614
- →public isLocked()
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:102
- →public isNew()
Overrides Entity::isNew(). EntityInterface::enforceIsNew() is only supported for newly created configuration entities but has no effect after saving, since each configuration entity is unique. Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:150
- →public isSyncing()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:219
- →public isUninstalling()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:233
- →public label()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:166
- →public language()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:372
- →public link($text = NULL, $rel = edit-form, array $options = array())
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:422
- →public mergeCacheMaxAge($max_age)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:51
- →public onDependencyRemoval(array $dependencies)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:500
- →public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:456
- →public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true)
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:120
- →public preSave(Drupal\Core\Entity\EntityStorageInterface $storage)
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:109
- →public referencedEntities()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:481
- →public save()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:636
- →public set($property_name, $value)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:164
- →public setName($name)
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:199
- →public setOriginalId($id)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:133
- →public setStatus($status)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:195
- →public setSyncing($syncing)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:210
- →public setThirdPartySetting($module, $key, $value)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:533
- →public setUninstalling($uninstalling)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:226
- →public setWeight($weight)
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:229
- →public status()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:203
- →public toArray()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:265
- →public toLink($text = NULL, $rel = canonical, array $options = array())
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:276
- →public toUrl($rel = edit-form, array $options = array())
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:430
- →public traitSleep()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:30
- →public trustData()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:621
- →public unsetThirdPartySetting($module, $key)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:560
- →public uriRelationships()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:336
- →public url($rel = edit-form, $options = array())
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:414
- →public urlInfo($rel = edit-form, array $options = array())
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:405
- →public uuid()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:129
- →protected static getConfigManager() -> \Drupal\Core\Config\ConfigManager
Gets the configuration manager. @return \Drupal\Core\Config\ConfigManager The configuration manager. Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:607
- →protected static getDefaultLangcode() -> string
Gets the default langcode. @return string The current default langcode. Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:184
- →protected static invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities)
{@inheritdoc} Override to never invalidate the individual entities' cache tags; the config system already invalidates them. Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:526
- →protected addDependencies(array $dependencies)
Adds multiple dependencies. @param array $dependencies An array of dependencies keyed by the type of dependency. One example: @code array( 'module' => array( 'node', 'field', 'image', ), ); @endcode @see \Drupal\Core\Entity\DependencyTrait::addDependency Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- →protected addDependency($type, $name)
Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). Note that this function should only be called from implementations of \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), as dependencies are recalculated during every entity save. @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:454
- →protected addDependencyTrait($type, $name) -> $this
Adds a dependency. @param string $type Type of dependency being added: 'module', 'theme', 'config', 'content'. @param string $name If $type is 'module' or 'theme', the name of the module or theme. If $type is 'config' or 'content', the result of EntityInterface::getConfigDependencyName(). @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() @return $this Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- →protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance)
Calculates and adds dependencies of a specific plugin instance. Dependencies are added for the module that provides the plugin, as well as any dependencies declared by the instance's calculateDependencies() method, if it implements \Drupal\Component\Plugin\DependentPluginInterface. @param \Drupal\Component\Plugin\PluginInspectionInterface $instance The plugin instance. Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:29
- →protected entityManager() -> \Drupal\Core\Entity\EntityManagerInterface
Gets the entity manager. @return \Drupal\Core\Entity\EntityManagerInterface @deprecated in Drupal 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal::entityTypeManager() instead in most cases. If the needed method is not on \Drupal\Core\Entity\EntityTypeManagerInterface, see the deprecated \Drupal\Core\Entity\EntityManager to find the correct interface or service. Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:79
- →protected entityTypeBundleInfo() -> \Drupal\Core\Entity\EntityTypeBundleInfoInterface
Gets the entity type bundle info service. @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:97
- →protected entityTypeManager() -> \Drupal\Core\Entity\EntityTypeManagerInterface
Gets the entity type manager. @return \Drupal\Core\Entity\EntityTypeManagerInterface Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:88
- →protected getTypedConfig() -> \Drupal\Core\Config\TypedConfigManagerInterface
Gets the typed config manager. @return \Drupal\Core\Config\TypedConfigManagerInterface Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:306
- →protected invalidateTagsOnSave($update)
{@inheritdoc} Override to never invalidate the entity's cache tag; the config system already invalidates it. Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:516
- →protected languageManager() -> \Drupal\Core\Language\LanguageManagerInterface
Gets the language manager. @return \Drupal\Core\Language\LanguageManagerInterface Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:106
- →protected linkTemplates() -> array
Gets an array link templates. @return array An array of link templates containing paths. Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:262
- →protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability) -> $this
Sets cacheability; useful for value object constructors. @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability The cacheability to set. @return $this Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- →protected urlRouteParameters($rel) -> array
Gets an array of placeholders for this entity. Individual entity classes may override this method to add additional placeholders if desired. If so, they should be sure to replicate the property caching logic. @param string $rel The link relationship type, for example: canonical or edit-form. @return array An array of URI placeholders. Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:315
- →protected uuidGenerator() -> \Drupal\Component\Uuid\UuidInterface
Gets the UUID generator. @return \Drupal\Component\Uuid\UuidInterface Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:115
- constant LANGCODE_SYSTEM :: string(6) "system"
- constant LANGCODE_NOT_SPECIFIED :: string(3) "und"
- constant LANGCODE_NOT_APPLICABLE :: string(3) "zxx"
- constant LANGCODE_DEFAULT :: string(9) "x-default"
- constant LANGCODE_SITE_DEFAULT :: string(12) "site_default"
- constant STATE_CONFIGURABLE :: integer1
- constant STATE_LOCKED :: integer2
- constant STATE_ALL :: integer3
- constant STATE_SITE_DEFAULT :: integer4
- constant TYPE_CONTENT :: string(16) "language_content"
- constant TYPE_INTERFACE :: string(18) "language_interface"
- constant TYPE_URL :: string(12) "language_url"
- constant DIRECTION_LTR :: string(3) "ltr"
- constant DIRECTION_RTL :: string(3) "rtl"
- →'attributes' => array(1)
- →'class' => array(1)
- string(13) "language-link"
- 'query' => array(0)
- →'en' => array(5)
- →'url' => Drupal\Core\Url(12)
- contents
- Available methods (36)
- protected urlGenerator -> NULL
- protected urlAssembler -> NULL
- protected accessManager -> NULL
- protected routeName -> string(21) "entity.node.canonical"
- protected routeParameters -> array(0)
- protected options -> array(0)
- protected external -> boolFALSE
- protected unrouted -> boolFALSE
- protected uri -> NULL
- protected internalPath -> NULL
- protected _serviceIds -> array(0)
- protected _entityStorages -> array(0)
- →public static createFromRequest(Symfony\Component\HttpFoundation\Request $request) -> static
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 in the Url object returned by this method. @param \Symfony\Component\HttpFoundation\Request $request A request object. @return static A Url object. Warning: the object is created even if the current user would get an access denied running the same request via the normal page flow. @throws \Drupal\Core\Routing\MatchingRouteNotFoundException Thrown when the request cannot be matched. Defined in <ROOT>core/lib/Drupal/Core/Url.php:476
- →public static fromRoute($route_name, $route_parameters = array(), $options = array()) -> \Drupal\Core\Url
Creates a new Url object for a URL that has a Drupal route. This method is for URLs that have Drupal routes (that is, most pages generated by Drupal). For non-routed local URIs relative to the base path (like robots.txt) use Url::fromUri() with the base: scheme. @param string $route_name The name of the route @param array $route_parameters (optional) An associative array of route parameter names and values. @param array $options See \Drupal\Core\Url::fromUri() for details. @return \Drupal\Core\Url A new Url object for a routed (internal to Drupal) URL. @see \Drupal\Core\Url::fromUserInput() @see \Drupal\Core\Url::fromUri() Defined in <ROOT>core/lib/Drupal/Core/Url.php:141
- →public static fromRouteMatch(Drupal\Core\Routing\RouteMatchInterface $route_match) -> $this
Creates a new URL object from a route match. @param \Drupal\Core\Routing\RouteMatchInterface $route_match The route match. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:153
- →public static fromUri($uri, $options = array()) -> \Drupal\Core\Url
Creates a new Url object from a URI. This method is for generating URLs for URIs that: - do not have Drupal routes: both external URLs and unrouted local URIs like base:robots.txt - do have a Drupal route but have a custom scheme to simplify linking. Currently, there is only the entity: scheme (This allows URIs of the form entity:{entity_type}/{entity_id}. For example: entity:node/1 resolves to the entity.node.canonical route with a node parameter of 1.) For URLs that have Drupal routes (that is, most pages generated by Drupal), use Url::fromRoute(). @param string $uri The URI of the resource including the scheme. For user input that may correspond to a Drupal route, use internal: for the scheme. For paths that are known not to be handled by the Drupal routing system (such as static files), use base: for the scheme to get a link relative to the Drupal base path (like the <base> HTML element). For a link to an entity you may use entity:{entity_type}/{entity_id} URIs. The internal: scheme should be avoided except when processing actual user input that may or may not correspond to a Drupal route. Normally use Url::fromRoute() for code linking to any any Drupal page. @param array $options (optional) An associative array of additional URL options, with the following elements: - 'query': An array of query key/value-pairs (without any URL-encoding) to append to the URL. - 'fragment': A fragment identifier (named anchor) to append to the URL. Do not include the leading '#' character. - 'absolute': Defaults to FALSE. Whether to force the output to be an absolute link (beginning with http:). Useful for links that will be displayed outside the site, such as in an RSS feed. - 'attributes': An associative array of HTML attributes that will be added to the anchor tag if you use the \Drupal\Core\Link class to make the link. - 'language': An optional language object used to look up the alias for the URL. If $options['language'] is omitted, it defaults to the current language for the language type LanguageInterface::TYPE_URL. - 'https': Whether this URL should point to a secure location. If not defined, the current scheme is used, so the user stays on HTTP or HTTPS respectively. TRUE enforces HTTPS and FALSE enforces HTTP. @return \Drupal\Core\Url A new Url object with properties depending on the URI scheme. Call the access() method on this to do access checking. @throws \InvalidArgumentException Thrown when the passed in path has no scheme. @see \Drupal\Core\Url::fromRoute() @see \Drupal\Core\Url::fromUserInput() Defined in <ROOT>core/lib/Drupal/Core/Url.php:266
- →public static fromUserInput($user_input, $options = array()) -> static
Creates a Url object for a relative URI reference submitted by user input. Use this method to create a URL for user-entered paths that may or may not correspond to a valid Drupal route. @param string $user_input User input for a link or path. The first character must be one of the following characters: - '/': A path within the current site. This path might be to a Drupal route (e.g., '/admin'), to a file (e.g., '/README.txt'), or to something processed by a non-Drupal script (e.g., '/not/a/drupal/page'). If the path matches a Drupal route, then the URL generation will include Drupal's path processors (e.g., language-prefixing and aliasing). Otherwise, the URL generation will just append the passed-in path to Drupal's base path. - '?': A query string for the current page or resource. - '#': A fragment (jump-link) on the current page or resource. This helps reduce ambiguity for user-entered links and paths, and supports user interfaces where users may normally use auto-completion to search for existing resources, but also may type one of these characters to link to (e.g.) a specific path on the site. (With regard to the URI specification, the user input is treated as a @link https://tools.ietf.org/html/rfc3986#section-4.2 relative URI reference @endlink where the relative part is of type @link https://tools.ietf.org/html/rfc3986#section-3.3 path-abempty @endlink.) @param array $options (optional) An array of options. See Url::fromUri() for details. @return static A new Url object based on user input. @throws \InvalidArgumentException Thrown when the user input does not begin with one of the following characters: '/', '?', or '#'. Defined in <ROOT>core/lib/Drupal/Core/Url.php:198
- →public static renderAccess(array $element) -> bool
Checks a Url render element against applicable access check services. @param array $element A render element as returned from \Drupal\Core\Url::toRenderArray(). @return bool Returns TRUE if the current user has access to the url, otherwise FALSE. Defined in <ROOT>core/lib/Drupal/Core/Url.php:823
- →public __construct($route_name, $route_parameters = array(), $options = array())
Constructs a new Url object. In most cases, use Url::fromRoute() or Url::fromUri() rather than constructing Url objects directly in order to avoid ambiguity and make your code more self-documenting. @param string $route_name The name of the route @param array $route_parameters (optional) An associative array of parameter names and values. @param array $options See \Drupal\Core\Url::fromUri() for details. @see static::fromRoute() @see static::fromUri() @todo Update this documentation for non-routed URIs in https://www.drupal.org/node/2346787 Defined in <ROOT>core/lib/Drupal/Core/Url.php:115
- →public __sleep()
{@inheritdoc} Defined in <ROOT>core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:30
- →public __wakeup()
{@inheritdoc} Defined in <ROOT>core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:65
- →public access(Drupal\Core\Session\AccountInterface $account = NULL) -> bool
Checks this Url object against applicable access check services. Determines whether the route is accessible or not. @param \Drupal\Core\Session\AccountInterface $account (optional) Run access checks for this account. Defaults to the current user. @return bool Returns TRUE if the user has access to the url, otherwise FALSE. Defined in <ROOT>core/lib/Drupal/Core/Url.php:807
- →public getInternalPath() -> string
Returns the internal path (system path) for this route. This path will not include any prefixes, fragments, or query strings. @return string The internal path for this route. @throws \UnexpectedValueException. If this is a URI with no corresponding system path. Defined in <ROOT>core/lib/Drupal/Core/Url.php:784
- →public getOption($name) -> mixed
Gets a specific option. See \Drupal\Core\Url::fromUri() for details on the options. @param string $name The name of the option. @return mixed The value for a specific option, or NULL if it does not exist. Defined in <ROOT>core/lib/Drupal/Core/Url.php:639
- →public getOptions() -> array
Returns the URL options. @return array The array of options. See \Drupal\Core\Url::fromUri() for details on what it contains. Defined in <ROOT>core/lib/Drupal/Core/Url.php:624
- →public getRouteName() -> string
Returns the route name. @return string @throws \UnexpectedValueException. If this is a URI with no corresponding route. Defined in <ROOT>core/lib/Drupal/Core/Url.php:553
- →public getRouteParameters() -> array
Returns the route parameters. @return array @throws \UnexpectedValueException. If this is a URI with no corresponding route. Defined in <ROOT>core/lib/Drupal/Core/Url.php:569
- →public getUri() -> string
Returns the URI value for this Url object. Only to be used if self::$unrouted is TRUE. @return string A URI not connected to a route. May be an external URL. @throws \UnexpectedValueException Thrown when the URI was requested for a routed URL. Defined in <ROOT>core/lib/Drupal/Core/Url.php:706
- →public isExternal() -> bool
Indicates if this Url is external. @return bool Defined in <ROOT>core/lib/Drupal/Core/Url.php:532
- →public isRouted() -> bool
Indicates if this Url has a Drupal route. @return bool Defined in <ROOT>core/lib/Drupal/Core/Url.php:541
- →public mergeOptions($options) -> $this
Merges the URL options with any currently set. In the case of conflict with existing options, the new options will replace the existing options. @param array $options The array of options. See \Drupal\Core\Url::fromUri() for details on what it contains. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:690
- →public setAbsolute($absolute = true) -> $this
Sets the value of the absolute option for this Url. @param bool $absolute (optional) Whether to make this Url absolute or not. Defaults to TRUE. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:722
- →public setOption($name, $value) -> $this
Sets a specific option. See \Drupal\Core\Url::fromUri() for details on the options. @param string $name The name of the option. @param mixed $value The option value. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:673
- →public setOptions($options) -> $this
Sets the URL options. @param array $options The array of options. See \Drupal\Core\Url::fromUri() for details on what it contains. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:656
- →public setRouteParameter($key, $value) -> $this
Sets a specific route parameter. @param string $key The key of the route parameter. @param mixed $value The route parameter. @return $this @throws \UnexpectedValueException. If this is a URI with no corresponding route. Defined in <ROOT>core/lib/Drupal/Core/Url.php:609
- →public setRouteParameters($parameters) -> $this
Sets the route parameters. @param array $parameters The array of parameters. @return $this @throws \UnexpectedValueException. If this is a URI with no corresponding route. Defined in <ROOT>core/lib/Drupal/Core/Url.php:588
- →public setUnroutedUrlAssembler(Drupal\Core\Utility\UnroutedUrlAssemblerInterface $url_assembler) -> $this
Sets the unrouted URL assembler. @param \Drupal\Core\Utility\UnroutedUrlAssemblerInterface $url_assembler The unrouted URL assembler. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:885
- →public setUrlGenerator(Drupal\Core\Routing\UrlGeneratorInterface $url_generator = NULL) -> $this
Sets the URL generator. @param \Drupal\Core\Routing\UrlGeneratorInterface $url_generator (optional) The URL generator, specify NULL to reset it. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:871
- →public toRenderArray() -> array
Returns the route information for a render array. @return array An associative array suitable for a render array. Defined in <ROOT>core/lib/Drupal/Core/Url.php:762
- →public toString($collect_bubbleable_metadata = false) -> string|\Drupal\Core\GeneratedUrl
Generates the string URL representation for this Url object. For an external URL, the string will contain the input plus any query string or fragment specified by the options array. If this Url object was constructed from a Drupal route or from an internal URI (URIs using the internal:, base:, or entity: schemes), the returned string will either be a relative URL like /node/1 or an absolute URL like http://example.com/node/1 depending on the options array, plus any specified query string or fragment. @param bool $collect_bubbleable_metadata (optional) Defaults to FALSE. When TRUE, both the generated URL and its associated bubbleable metadata are returned. @return string|\Drupal\Core\GeneratedUrl A string URL. When $collect_bubbleable_metadata is TRUE, a GeneratedUrl object is returned, containing the generated URL plus bubbleable metadata. Defined in <ROOT>core/lib/Drupal/Core/Url.php:748
- →public toUriString() -> string
Generates a URI string that represents the data in the Url object. The URI will typically have the scheme of route: even if the object was constructed using an entity: or internal: scheme. A internal: URI that does not match a Drupal route with be returned here with the base: scheme, and external URLs will be returned in their original form. @return string A URI representation of the Url object data. Defined in <ROOT>core/lib/Drupal/Core/Url.php:512
- →protected static fromEntityUri(array $uri_parts, array $options, $uri) -> \Drupal\Core\Url
Create a new Url object for entity URIs. @param array $uri_parts Parts from an URI of the form entity:{entity_type}/{entity_id} as from parse_url(). @param array $options An array of options, see \Drupal\Core\Url::fromUri() for details. @param string $uri The original entered URI. @return \Drupal\Core\Url A new Url object for an entity's canonical route. @throws \InvalidArgumentException Thrown if the entity URI is invalid. Defined in <ROOT>core/lib/Drupal/Core/Url.php:341
- →protected static fromInternalUri(array $uri_parts, array $options) -> \Drupal\Core\Url
Creates a new Url object for 'internal:' URIs. Important note: the URI minus the scheme can NOT simply be validated by a \Drupal\Core\Path\PathValidatorInterface implementation. The semantics of the 'internal:' URI scheme are different: - PathValidatorInterface accepts paths without a leading slash (e.g. 'node/add') as well as 2 special paths: '<front>' and '<none>', which are mapped to the correspondingly named routes. - 'internal:' URIs store paths with a leading slash that represents the root — i.e. the front page — (e.g. 'internal:/node/add'), and doesn't have any exceptions. To clarify, a few examples of path plus corresponding 'internal:' URI: - 'node/add' -> 'internal:/node/add' - 'node/add?foo=bar' -> 'internal:/node/add?foo=bar' - 'node/add#kitten' -> 'internal:/node/add#kitten' - '<front>' -> 'internal:/' - '<front>foo=bar' -> 'internal:/?foo=bar' - '<front>#kitten' -> 'internal:/#kitten' - '<none>' -> 'internal:' - '<none>foo=bar' -> 'internal:?foo=bar' - '<none>#kitten' -> 'internal:#kitten' Therefore, when using a PathValidatorInterface to validate 'internal:' URIs, we must map: - 'internal:' (path component is '') to the special '<none>' path - 'internal:/' (path component is '/') to the special '<front>' path - 'internal:/some-path' (path component is '/some-path') to 'some-path' @param array $uri_parts Parts from an URI of the form internal:{path} as from parse_url(). @param array $options An array of options, see \Drupal\Core\Url::fromUri() for details. @return \Drupal\Core\Url A new Url object for a 'internal:' URI. @throws \InvalidArgumentException Thrown when the URI's path component doesn't have a leading slash. Defined in <ROOT>core/lib/Drupal/Core/Url.php:391
- →protected static fromRouteUri(array $uri_parts, array $options, $uri) -> \Drupal\Core\Url
Creates a new Url object for 'route:' URIs. @param array $uri_parts Parts from an URI of the form route:{route_name};{route_parameters} as from parse_url(), where the path is the route name optionally followed by a ";" followed by route parameters in key=value format with & separators. @param array $options An array of options, see \Drupal\Core\Url::fromUri() for details. @param string $uri The original passed in URI. @return \Drupal\Core\Url A new Url object for a 'route:' URI. @throws \InvalidArgumentException Thrown when the route URI does not have a route name. Defined in <ROOT>core/lib/Drupal/Core/Url.php:440
- →protected accessManager() -> \Drupal\Core\Access\AccessManagerInterface
@return \Drupal\Core\Access\AccessManagerInterface Defined in <ROOT>core/lib/Drupal/Core/Url.php:830
- →protected setUnrouted() -> $this
Sets this Url to encapsulate an unrouted URI. @return $this Defined in <ROOT>core/lib/Drupal/Core/Url.php:490
- →protected unroutedUrlAssembler() -> \Drupal\Core\Utility\UnroutedUrlAssemblerInterface
Gets the unrouted URL assembler for non-Drupal URLs. @return \Drupal\Core\Utility\UnroutedUrlAssemblerInterface The unrouted URL assembler. Defined in <ROOT>core/lib/Drupal/Core/Url.php:856
- →protected urlGenerator() -> \Drupal\Core\Routing\UrlGeneratorInterface
Gets the URL generator. @return \Drupal\Core\Routing\UrlGeneratorInterface The URL generator. Defined in <ROOT>core/lib/Drupal/Core/Url.php:843
- 'title' => string(7) "English"
- →'language' => Drupal\language\Entity\ConfigurableLanguage(24)
- contents
- Available methods (98)
- Static class properties (14)
- protected id -> string(2) "en"
- protected label -> string(7) "English"
- protected direction -> string(3) "ltr"
- protected weight -> integer1
- protected locked -> boolFALSE
- protected preSaveMultilingual -> NULL
- protected originalId -> string(2) "en"
- protected status -> boolTRUE
- protected uuid -> string(36) "487b487a-2d5e-4da2-879a-30952f742c08"
- private isSyncing -> boolFALSE
- private isUninstalling -> boolFALSE
- protected langcode -> string(2) "fr"
- protected third_party_settings -> array(0)
- protected _core -> array(0)
- protected trustedData -> boolFALSE
- protected entityTypeId -> string(21) "configurable_language"
- protected enforceIsNew -> NULL
- protected typedData -> NULL
- →protected cacheContexts -> array(1)
- string(28) "languages:language_interface"
- protected cacheTags -> array(0)
- protected cacheMaxAge -> integer-1
- protected _serviceIds -> array(0)
- protected _entityStorages -> array(0)
- protected dependencies -> array(0)
- →public static create(array $values = array())
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:544
- →public static createFromLangcode($langcode) -> $this
Creates a configurable language object from a langcode. @param string $langcode The language code to use to create the object. @return $this @see \Drupal\Core\Language\LanguageManager::getStandardLanguageList() Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:244
- →public static load($id)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:524
- →public static loadMultiple(array $ids = NULL)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:534
- →public static postDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities)
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:163
- →public static postLoad(Drupal\Core\Entity\EntityStorageInterface $storage, array &$entities)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:475
- →public static preCreate(Drupal\Core\Entity\EntityStorageInterface $storage, array &$values)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:450
- →public static preDelete(Drupal\Core\Entity\EntityStorageInterface $storage, array $entities)
{@inheritdoc} @throws \DeleteDefaultLanguageException Exception thrown if we're trying to delete the default language entity. This is not allowed as a site must have a default language. Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:151
- →public static sort(Drupal\Core\Config\Entity\ConfigEntityInterface $a, Drupal\Core\Config\Entity\ConfigEntityInterface $b)
Helper callback for uasort() to sort configuration entities by weight and label. Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:251
- →public __construct(array $values, $entity_type)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:112
- →public __sleep()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:353
- →public __wakeup()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:65
- →public access($operation, Drupal\Core\Session\AccountInterface $account = NULL, $return_as_object = false)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:358
- →public addCacheContexts(array $cache_contexts)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:31
- →public addCacheTags(array $cache_tags)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:41
- →public addCacheableDependency($other_object)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:15
- →public bundle()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:159
- →public calculateDependencies()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:379
- →public createDuplicate()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:240
- →public delete()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:397
- →public disable()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:188
- →public enable()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:181
- →public enforceIsNew($value = true)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:143
- →public get($property_name)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:157
- →public getCacheContexts()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:488
- →public getCacheMaxAge()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:517
- →public getCacheTags()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:507
- →public getCacheTagsToInvalidate()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:439
- →public getConfigDependencyKey()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:646
- →public getConfigDependencyName()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:482
- →public getConfigTarget()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:489
- →public getDependencies()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:468
- →public getDirection()
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:215
- →public getEntityType()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:423
- →public getEntityTypeId()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:152
- →public getId()
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:208
- →public getName()
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:192
- →public getOriginalId()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:126
- →public getThirdPartyProviders()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:573
- →public getThirdPartySetting($module, $key, $default = NULL)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:541
- →public getThirdPartySettings($module)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:553
- →public getTypedData()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:627
- →public getWeight()
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:222
- →public hasLinkTemplate($rel)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:251
- →public hasTrustedData()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:629
- →public id()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:122
- →public isDefault()
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:95
- →public isInstallable()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:614
- →public isLocked()
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:102
- →public isNew()
Overrides Entity::isNew(). EntityInterface::enforceIsNew() is only supported for newly created configuration entities but has no effect after saving, since each configuration entity is unique. Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:150
- →public isSyncing()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:219
- →public isUninstalling()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:233
- →public label()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:166
- →public language()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:372
- →public link($text = NULL, $rel = edit-form, array $options = array())
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:422
- →public mergeCacheMaxAge($max_age)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php:51
- →public onDependencyRemoval(array $dependencies)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:500
- →public postCreate(Drupal\Core\Entity\EntityStorageInterface $storage)
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:456
- →public postSave(Drupal\Core\Entity\EntityStorageInterface $storage, $update = true)
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:120
- →public preSave(Drupal\Core\Entity\EntityStorageInterface $storage)
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:109
- →public referencedEntities()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:481
- →public save()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:636
- →public set($property_name, $value)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:164
- →public setName($name)
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:199
- →public setOriginalId($id)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:133
- →public setStatus($status)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:195
- →public setSyncing($syncing)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:210
- →public setThirdPartySetting($module, $key, $value)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:533
- →public setUninstalling($uninstalling)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:226
- →public setWeight($weight)
{@inheritdoc} Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:229
- →public status()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:203
- →public toArray()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:265
- →public toLink($text = NULL, $rel = canonical, array $options = array())
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:276
- →public toUrl($rel = edit-form, array $options = array())
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:430
- →public traitSleep()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php:30
- →public trustData()
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:621
- →public unsetThirdPartySetting($module, $key)
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:560
- →public uriRelationships()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:336
- →public url($rel = edit-form, $options = array())
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:414
- →public urlInfo($rel = edit-form, array $options = array())
{@inheritdoc} Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:405
- →public uuid()
{@inheritdoc} Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:129
- →protected static getConfigManager() -> \Drupal\Core\Config\ConfigManager
Gets the configuration manager. @return \Drupal\Core\Config\ConfigManager The configuration manager. Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:607
- →protected static getDefaultLangcode() -> string
Gets the default langcode. @return string The current default langcode. Defined in <ROOT>core/modules/language/src/Entity/ConfigurableLanguage.php:184
- →protected static invalidateTagsOnDelete(Drupal\Core\Entity\EntityTypeInterface $entity_type, array $entities)
{@inheritdoc} Override to never invalidate the individual entities' cache tags; the config system already invalidates them. Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:526
- →protected addDependencies(array $dependencies)
Adds multiple dependencies. @param array $dependencies An array of dependencies keyed by the type of dependency. One example: @code array( 'module' => array( 'node', 'field', 'image', ), ); @endcode @see \Drupal\Core\Entity\DependencyTrait::addDependency Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Entity/DependencyTrait.php:64
- →protected addDependency($type, $name)
Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). Note that this function should only be called from implementations of \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), as dependencies are recalculated during every entity save. @see \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:454
- →protected addDependencyTrait($type, $name) -> $this
Adds a dependency. @param string $type Type of dependency being added: 'module', 'theme', 'config', 'content'. @param string $name If $type is 'module' or 'theme', the name of the module or theme. If $type is 'config' or 'content', the result of EntityInterface::getConfigDependencyName(). @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() @return $this Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Entity/DependencyTrait.php:31
- →protected calculatePluginDependencies(Drupal\Component\Plugin\PluginInspectionInterface $instance)
Calculates and adds dependencies of a specific plugin instance. Dependencies are added for the module that provides the plugin, as well as any dependencies declared by the instance's calculateDependencies() method, if it implements \Drupal\Component\Plugin\DependentPluginInterface. @param \Drupal\Component\Plugin\PluginInspectionInterface $instance The plugin instance. Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:29
- →protected entityManager() -> \Drupal\Core\Entity\EntityManagerInterface
Gets the entity manager. @return \Drupal\Core\Entity\EntityManagerInterface @deprecated in Drupal 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal::entityTypeManager() instead in most cases. If the needed method is not on \Drupal\Core\Entity\EntityTypeManagerInterface, see the deprecated \Drupal\Core\Entity\EntityManager to find the correct interface or service. Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:79
- →protected entityTypeBundleInfo() -> \Drupal\Core\Entity\EntityTypeBundleInfoInterface
Gets the entity type bundle info service. @return \Drupal\Core\Entity\EntityTypeBundleInfoInterface Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:97
- →protected entityTypeManager() -> \Drupal\Core\Entity\EntityTypeManagerInterface
Gets the entity type manager. @return \Drupal\Core\Entity\EntityTypeManagerInterface Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:88
- →protected getTypedConfig() -> \Drupal\Core\Config\TypedConfigManagerInterface
Gets the typed config manager. @return \Drupal\Core\Config\TypedConfigManagerInterface Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:306
- →protected invalidateTagsOnSave($update)
{@inheritdoc} Override to never invalidate the entity's cache tag; the config system already invalidates it. Inherited from Drupal\Core\Config\Entity\ConfigEntityBase Defined in <ROOT>core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:516
- →protected languageManager() -> \Drupal\Core\Language\LanguageManagerInterface
Gets the language manager. @return \Drupal\Core\Language\LanguageManagerInterface Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:106
- →protected linkTemplates() -> array
Gets an array link templates. @return array An array of link templates containing paths. Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:262
- →protected setCacheability(Drupal\Core\Cache\CacheableDependencyInterface $cacheability) -> $this
Sets cacheability; useful for value object constructors. @param \Drupal\Core\Cache\CacheableDependencyInterface $cacheability The cacheability to set. @return $this Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php:39
- →protected urlRouteParameters($rel) -> array
Gets an array of placeholders for this entity. Individual entity classes may override this method to add additional placeholders if desired. If so, they should be sure to replicate the property caching logic. @param string $rel The link relationship type, for example: canonical or edit-form. @return array An array of URI placeholders. Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:315
- →protected uuidGenerator() -> \Drupal\Component\Uuid\UuidInterface
Gets the UUID generator. @return \Drupal\Component\Uuid\UuidInterface Inherited from Drupal\Core\Entity\Entity Defined in <ROOT>core/lib/Drupal/Core/Entity/Entity.php:115
- constant LANGCODE_SYSTEM :: string(6) "system"
- constant LANGCODE_NOT_SPECIFIED :: string(3) "und"
- constant LANGCODE_NOT_APPLICABLE :: string(3) "zxx"
- constant LANGCODE_DEFAULT :: string(9) "x-default"
- constant LANGCODE_SITE_DEFAULT :: string(12) "site_default"
- constant STATE_CONFIGURABLE :: integer1
- constant STATE_LOCKED :: integer2
- constant STATE_ALL :: integer3
- constant STATE_SITE_DEFAULT :: integer4
- constant TYPE_CONTENT :: string(16) "language_content"
- constant TYPE_INTERFACE :: string(18) "language_interface"
- constant TYPE_URL :: string(12) "language_url"
- constant DIRECTION_LTR :: string(3) "ltr"
- constant DIRECTION_RTL :: string(3) "rtl"
- →'attributes' => array(1)
- →'class' => array(1)
- string(13) "language-link"
- 'query' => array(0)
- public method_id -> string(12) "language-url"

Bateaux Parisiens
Description de la compagnie
Au pied de la Tour Eiffel, les Bateaux Parisiens vous accueillent sur une flotte moderne pour une merveilleuse croisière visite d'1h.
Bateaux Parisiens

15 €
Details de l'offre
Descriptif de la croisière
Croisière Promenade d'1h sur la Seine
Bateaux Mouches
Description de la compagnie
La Compagnie des Bateaux-Mouches vous accueille sur sa flotte pour un tour commenté d'1h15 face aux plus beaux monuments parisiens. Une croisière historique incontournable !