You are here

public function ViewUI::hasLinkTemplate in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/views_ui/src/ViewUI.php \Drupal\views_ui\ViewUI::hasLinkTemplate()
  2. 10 core/modules/views_ui/src/ViewUI.php \Drupal\views_ui\ViewUI::hasLinkTemplate()

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

File

core/modules/views_ui/src/ViewUI.php, line 1185

Class

ViewUI
Stores UI related temporary settings.

Namespace

Drupal\views_ui

Code

public function hasLinkTemplate($key) {
  return $this->storage
    ->hasLinkTemplate($key);
}