You are here

public function TwigPluginBase::getFunction in Twig Extender 8

Same name and namespace in other branches
  1. 8.4 src/Plugin/Twig/TwigPluginBase.php \Drupal\twig_extender\Plugin\Twig\TwigPluginBase::getFunction()
  2. 8.2 src/Plugin/Twig/TwigPluginBase.php \Drupal\twig_extender\Plugin\Twig\TwigPluginBase::getFunction()
  3. 8.3 src/Plugin/Twig/TwigPluginBase.php \Drupal\twig_extender\Plugin\Twig\TwigPluginBase::getFunction()
  4. 4.x src/Plugin/Twig/TwigPluginBase.php \Drupal\twig_extender\Plugin\Twig\TwigPluginBase::getFunction()

Get type of the twig extension.

Overrides TwigExtensionInterface::getFunction

1 call to TwigPluginBase::getFunction()
TwigPluginBase::register in src/Plugin/Twig/TwigPluginBase.php
Get type of the twig extension.

File

src/Plugin/Twig/TwigPluginBase.php, line 29

Class

TwigPluginBase
Provides a base class for Twig plugins plugins.

Namespace

Drupal\twig_extender\Plugin\Twig

Code

public function getFunction() {
  return $this->pluginDefinition['function'];
}