You are here

public function Entity::uriRelationships in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Entity/Entity.php \Drupal\Core\Entity\Entity::uriRelationships()

Returns a list of URI relationships supported by this entity.

Return value

array An array of link relationships supported by this entity.

Overrides EntityInterface::uriRelationships

File

core/lib/Drupal/Core/Entity/Entity.php, line 329
Contains \Drupal\Core\Entity\Entity.

Class

Entity
Defines a base entity class.

Namespace

Drupal\Core\Entity

Code

public function uriRelationships() {
  return array_keys($this
    ->linkTemplates());
}