public function Url::getRouteParameters in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Url.php \Drupal\Core\Url::getRouteParameters()
Returns the route parameters.
Return value
array
Throws
\UnexpectedValueException. If this is a URI with no corresponding route.
3 calls to Url::getRouteParameters()
- Url::access in core/
lib/ Drupal/ Core/ Url.php - Checks this Url object against applicable access check services.
- Url::getInternalPath in core/
lib/ Drupal/ Core/ Url.php - Returns the internal path (system path) for this route.
- Url::toString in core/
lib/ Drupal/ Core/ Url.php - Generates the string URL representation for this Url object.
File
- core/
lib/ Drupal/ Core/ Url.php, line 589 - Contains \Drupal\Core\Url.
Class
- Url
- Defines an object that holds information about a URL.
Namespace
Drupal\CoreCode
public function getRouteParameters() {
if ($this->unrouted) {
throw new \UnexpectedValueException('External URLs do not have internal route parameters.');
}
return $this->routeParameters;
}