function IconsTwigExtension::getFunctions

File

core/lib/Drupal/Core/Template/IconsTwigExtension.php, line 20

Class

IconsTwigExtension
Twig extension for icon.

Namespace

Drupal\Core\Template

Code

public function getFunctions() : array {
    return [
        new TwigFunction('icon', [
            $this,
            'getIconRenderable',
        ]),
    ];
}

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