class TestUrl
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/UrlTest.php \Drupal\Tests\Core\TestUrl
- 8.9.x core/tests/Drupal/Tests/Core/UrlTest.php \Drupal\Tests\Core\TestUrl
- 11.x core/tests/Drupal/Tests/Core/UrlTest.php \Drupal\Tests\Core\TestUrl
Hierarchy
- class \Drupal\Core\Url implements \Drupal\Core\Security\TrustedCallbackInterface uses \Drupal\Core\DependencyInjection\DependencySerializationTrait
- class \Drupal\Tests\Core\TestUrl extends \Drupal\Core\Url
Expanded class hierarchy of TestUrl
File
-
core/
tests/ Drupal/ Tests/ Core/ UrlTest.php, line 856
Namespace
Drupal\Tests\CoreView source
class TestUrl extends Url {
/**
* Sets the access manager.
*
* @param \Drupal\Core\Access\AccessManagerInterface $access_manager
* The access manager.
*/
public function setAccessManager(AccessManagerInterface $access_manager) {
$this->accessManager = $access_manager;
}
}
Members
Title Sort descending | Deprecated | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|---|
DependencySerializationTrait::$_entityStorages | protected | property | ||||
DependencySerializationTrait::$_serviceIds | protected | property | ||||
DependencySerializationTrait::__sleep | public | function | 1 | |||
DependencySerializationTrait::__wakeup | public | function | 2 | |||
TestUrl::setAccessManager | public | function | Sets the access manager. | |||
TrustedCallbackInterface::THROW_EXCEPTION | constant | Untrusted callbacks throw exceptions. | ||||
TrustedCallbackInterface::TRIGGER_SILENCED_DEPRECATION | constant | Untrusted callbacks trigger silenced E_USER_DEPRECATION errors. | ||||
TrustedCallbackInterface::TRIGGER_WARNING | Deprecated | constant | Untrusted callbacks trigger E_USER_WARNING errors. | |||
Url::$accessManager | protected | property | The access manager. | |||
Url::$external | protected | property | Indicates whether this object contains an external URL. | |||
Url::$internalPath | protected | property | Stores the internal path, if already requested by getInternalPath(). | |||
Url::$options | protected | property | The URL options. | |||
Url::$routeName | protected | property | The route name. | |||
Url::$routeParameters | protected | property | The route parameters. | |||
Url::$unrouted | protected | property | Indicates whether this URL is for a URI without a Drupal route. | |||
Url::$uri | protected | property | The non-route URI. | |||
Url::$urlAssembler | protected | property | The unrouted URL assembler. | |||
Url::$urlGenerator | protected | property | The URL generator. | |||
Url::access | public | function | Checks this Url object against applicable access check services. | |||
Url::accessManager | protected | function | ||||
Url::createFromRequest | public static | function | Returns the Url object matching a request. | |||
Url::fromEntityUri | protected static | function | Create a new Url object for entity URIs. | |||
Url::fromInternalUri | protected static | function | Creates a new Url object for 'internal:' URIs. | |||
Url::fromRoute | public static | function | Creates a new Url object for a URL that has a Drupal route. | |||
Url::fromRouteMatch | public static | function | Creates a new URL object from a route match. | |||
Url::fromRouteUri | protected static | function | Creates a new Url object for 'route:' URIs. | |||
Url::fromUri | public static | function | Creates a new Url object from a URI. | |||
Url::fromUserInput | public static | function | Creates a Url object for a relative URI reference submitted by user input. | |||
Url::getInternalPath | public | function | Returns the internal path (system path) for this route. | |||
Url::getOption | public | function | Gets a specific option. | |||
Url::getOptions | public | function | Returns the URL options. | |||
Url::getRouteName | public | function | Returns the route name. | |||
Url::getRouteParameters | public | function | Returns the route parameters. | |||
Url::getUri | public | function | Returns the URI value for this Url object. | |||
Url::isExternal | public | function | Indicates if this URL is external. | |||
Url::isRouted | public | function | Indicates if this URL has a Drupal route. | |||
Url::mergeOptions | public | function | Merges the URL options with any currently set. | |||
Url::renderAccess | Deprecated | public static | function | Checks a URL render element against applicable access check services. | ||
Url::setAbsolute | public | function | Sets the value of the absolute option for this Url. | |||
Url::setOption | public | function | Sets a specific option. | |||
Url::setOptions | public | function | Sets the URL options. | |||
Url::setRouteParameter | public | function | Sets a specific route parameter. | |||
Url::setRouteParameters | public | function | Sets the route parameters. | |||
Url::setUnrouted | protected | function | Sets this URL to encapsulate an unrouted URI. | |||
Url::setUnroutedUrlAssembler | public | function | Sets the unrouted URL assembler. | |||
Url::setUrlGenerator | public | function | Sets the URL generator. | |||
Url::toRenderArray | Deprecated | public | function | Returns the route information for a render array. | ||
Url::toString | public | function | Generates the string URL representation for this Url object. | |||
Url::toUriString | public | function | Generates a URI string that represents the data in the Url object. | |||
Url::trustedCallbacks | public static | function | Lists the trusted callbacks provided by the implementing class. | Overrides TrustedCallbackInterface::trustedCallbacks | ||
Url::unroutedUrlAssembler | protected | function | Gets the unrouted URL assembler for non-Drupal URLs. | |||
Url::urlGenerator | protected | function | Gets the URL generator. | |||
Url::__construct | public | function | Constructs a new Url object. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.