8.3.x EntityInterface.php public EntityInterface::hasLinkTemplate($key)
8.0.x EntityInterface.php public EntityInterface::hasLinkTemplate($key)
8.1.x EntityInterface.php public EntityInterface::hasLinkTemplate($key)
8.2.x EntityInterface.php public EntityInterface::hasLinkTemplate($key)
8.4.x EntityInterface.php public EntityInterface::hasLinkTemplate($key)

Indicates if a link template exists for a given key.

Parameters

string $key: The link type.

Return value

bool TRUE if the link template exists, FALSE otherwise.

Overrides EntityInterface::hasLinkTemplate

3 methods override EntityInterface::hasLinkTemplate()
Entity::hasLinkTemplate in core/lib/Drupal/Core/Entity/Entity.php
Indicates if a link template exists for a given key.
EntityInterface::hasLinkTemplate in core/lib/Drupal/Core/Entity/EntityInterface.php
Indicates if a link template exists for a given key.
ViewUI::hasLinkTemplate in core/modules/views_ui/src/ViewUI.php
Indicates if a link template exists for a given key.

File

core/lib/Drupal/Core/Entity/EntityInterface.php, line 225

Class

EntityInterface
Defines a common interface for all entity objects.

Namespace

Drupal\Core\Entity

Code

public function hasLinkTemplate($key);