public function Entity::urlInfo in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Entity/Entity.php \Drupal\Core\Entity\Entity::urlInfo()
Gets the URL object for the entity.
Parameters
string $rel: The link relationship type, for example: canonical or edit-form.
array $options: See \Drupal\Core\Routing\UrlGeneratorInterface::generateFromRoute() for the available options.
Return value
\Drupal\Core\Url The URL object.
Overrides EntityInterface::urlInfo
See also
\Drupal\Core\Entity\EntityInterface::toUrl
1 call to Entity::urlInfo()
- ConfigEntityBase::urlInfo in core/
lib/ Drupal/ Core/ Config/ Entity/ ConfigEntityBase.php - Gets the URL object for the entity.
1 method overrides Entity::urlInfo()
- ConfigEntityBase::urlInfo in core/
lib/ Drupal/ Core/ Config/ Entity/ ConfigEntityBase.php - Gets the URL object for the entity.
File
- core/
lib/ Drupal/ Core/ Entity/ Entity.php, line 175 - Contains \Drupal\Core\Entity\Entity.
Class
- Entity
- Defines a base entity class.
Namespace
Drupal\Core\EntityCode
public function urlInfo($rel = 'canonical', array $options = []) {
return $this
->toUrl($rel, $options);
}