8.3.x Entity.php protected Entity::linkTemplates()
8.0.x Entity.php protected Entity::linkTemplates()
8.1.x Entity.php protected Entity::linkTemplates()
8.2.x Entity.php protected Entity::linkTemplates()
8.4.x Entity.php protected 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
Gets 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 251

Class

Entity
Defines a base entity class.

Namespace

Drupal\Core\Entity

Code

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