You are here

public function Micon::getFunctions in Micon 8

Same name and namespace in other branches
  1. 2.x src/TwigExtension/Micon.php \Drupal\micon\TwigExtension\Micon::getFunctions()

File

src/TwigExtension/Micon.php, line 26

Class

Micon
A class providing Micon Twig extensions.

Namespace

Drupal\micon\TwigExtension

Code

public function getFunctions() {
  return array(
    new \Twig_SimpleFunction('micon', array(
      $this,
      'renderIcon',
    )),
  );
}