You are here

protected function Entity::linkTemplates 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::linkTemplates()

Gets an array link templates.

Return value

array An array of link templates containing paths.

4 calls to Entity::linkTemplates()
Entity::hasLinkTemplate in core/lib/Drupal/Core/Entity/Entity.php
Indicates if a link template exists for a given key.
Entity::toUrl in core/lib/Drupal/Core/Entity/Entity.php
Gets the URL object for the entity.
Entity::uriRelationships in core/lib/Drupal/Core/Entity/Entity.php
Returns a list of URI relationships supported by this entity.
FieldConfig::linkTemplates in core/modules/field/src/Entity/FieldConfig.php
Gets an array link templates.
1 method overrides Entity::linkTemplates()
FieldConfig::linkTemplates in core/modules/field/src/Entity/FieldConfig.php
Gets an array link templates.

File

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

Class

Entity
Defines a base entity class.

Namespace

Drupal\Core\Entity

Code

protected function linkTemplates() {
  return $this
    ->getEntityType()
    ->getLinkTemplates();
}