W3cubDocs

/Drupal 8

protected function Entity::linkTemplates

protected Entity::linkTemplates()

Gets an array link templates.

Return value

array An array of link templates containing paths.

File

core/lib/Drupal/Core/Entity/Entity.php, line 251

Class

Entity
Defines a base entity class.

Namespace

Drupal\Core\Entity

Code

protected function linkTemplates() {
  return $this->getEntityType()->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!Entity.php/function/Entity::linkTemplates/8.1.x