You are here

public function IconSelectExtension::getFunctions in Icon Select 8

File

src/Twig/Extension/IconSelectExtension.php, line 15

Class

IconSelectExtension
Twig extension for icon rendering.

Namespace

Drupal\icon_select\Twig\Extension

Code

public function getFunctions() {
  return [
    new \Twig_SimpleFunction('svg_icon', [
      $this,
      'iconSelectRender',
    ]),
  ];
}