public EntityTypeInterface::getLinkTemplates()
Gets the link templates using the URI template syntax.
Links are an array of standard link relations to the URI template that should be used for them. Where possible, link relationships should use established IANA relationships rather than custom relationships.
Every entity type should, at minimum, define "canonical", which is the pattern for URIs to that entity. Even if the entity will have no HTML page exposed to users it should still have a canonical URI in order to be compatible with web services. Entities that will be user-editable via an HTML page must also define an "edit-form" relationship.
By default, the following placeholders are supported:
Specific entity types may also expand upon this list by overriding the Entity::urlRouteParameters() method.
http://www.iana.org/assignments/link-relations/link-relations.xml http://tools.ietf.org/html/rfc6570
array
public function getLinkTemplates();
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!EntityTypeInterface.php/function/EntityTypeInterface::getLinkTemplates/8.1.x