function EntityBase::linkTemplates

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::linkTemplates()
  2. 10 core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::linkTemplates()
  3. 11.x core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::linkTemplates()

Gets an array link templates.

Return value

array An array of link templates containing paths.

4 calls to EntityBase::linkTemplates()
EntityBase::hasLinkTemplate in core/lib/Drupal/Core/Entity/EntityBase.php
EntityBase::toUrl in core/lib/Drupal/Core/Entity/EntityBase.php
EntityBase::uriRelationships in core/lib/Drupal/Core/Entity/EntityBase.php
FieldConfig::linkTemplates in core/modules/field/src/Entity/FieldConfig.php
1 method overrides EntityBase::linkTemplates()
FieldConfig::linkTemplates in core/modules/field/src/Entity/FieldConfig.php

File

core/lib/Drupal/Core/Entity/EntityBase.php, line 264

Class

EntityBase
Defines a base entity class.

Namespace

Drupal\Core\Entity

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.