Returns the URI elements of the entity.
Return value
An array containing the 'path' and 'options' keys used to build the URI
of the entity, and matching the signature of url(). NULL if the entity
has no URI of its own.
File
- drupal/core/lib/Drupal/Core/Entity/EntityInterface.php, line 127
- Definition of Drupal\Core\Entity\EntityInterface.
Class
- EntityInterface
- Defines a common interface for all entity objects.
Namespace
Drupal\Core\Entity
Code
public function uri();