Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. EntityBase.php

function EntityBase::linkTemplates

Gets an array link templates.

Return value

array An array of link templates containing paths.

5 calls to EntityBase::linkTemplates()
EntityBase::hasLinkTemplate in core/lib/Drupal/Core/Entity/EntityBase.php
Indicates if a link template exists for a given key.
EntityBase::toUrl in core/lib/Drupal/Core/Entity/EntityBase.php
Gets the URL object for the entity.
EntityBase::uriRelationships in core/lib/Drupal/Core/Entity/EntityBase.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.
FieldConfig::linkTemplates in core/modules/field/src/Entity/FieldConfig.php
Gets an array link templates.
1 method overrides EntityBase::linkTemplates()
FieldConfig::linkTemplates in core/modules/field/src/Entity/FieldConfig.php
Gets an array link templates.

File

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

Class

EntityBase
Defines a base entity class.

Namespace

Drupal\Core\Entity

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal