Get path / uri for any entity

Public

This function will return path + options for any entity. Just pass entity_type, for example 'node' and entity object and voila! This is helpful in situations when your code works with different kinds of entities:

</> CopyGet raw version
php
  1. list($path, $options) = array_values(entity_uri($entity_type, $entity));