function IconDefinition::getTemplate

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Theme/Icon/IconDefinition.php \Drupal\Core\Theme\Icon\IconDefinition::getTemplate()

Get the icon Twig template.

Return value

string The icon template.

Overrides IconDefinitionInterface::getTemplate

File

core/lib/Drupal/Core/Theme/Icon/IconDefinition.php, line 165

Class

IconDefinition
Handle an icon definition.

Namespace

Drupal\Core\Theme\Icon

Code

public function getTemplate() : string {
  return $this->template;
}

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