TIC\TwigBundle\Extension\RouterExtension
Filtres et fonctions twig de formattage et conversions.
https://symfony.com/doc/current/templating/twig_extension.html
Synopsis
class RouterExtension
extends TICTwigExtension
{
- // members
- protected $router;
- // Inherited members from TICTwigExtension
- protected $urlHelper;
- protected $translator;
- protected static array $strings;
- // methods
- public array getFilters()
- public void __construct()
- public bool isCurrentUrlFilter()
- // Inherited methods from TICTwigExtension
- protected string trans()
- protected string getText()
- protected mixed getBool()
- protected string getIcon()
- protected string htmlAttr()
Hierarchy
Tasks
| Line | Task |
|---|---|
| 80 | utiliser un mapping défini dans la configuration (pouvent être étendu et modifié) |
Members
protected
- $router
- $strings
- $translator
- $urlHelper
Methods
public
Inherited from TIC\TwigBundle\Base\TICTwigExtension
protected
- getBool() — Retourne l'équivalent booléen (ou null) d'une variable quelconque.
- getIcon() — Génération d'un tag HTML pour afficher un icone FontAwesome ou Bootstrap (avec quelques alias utiles).
- getText() — Retourne une chaine texte à partir d'une variable (avec traduction et échappements HTML possibles).
- htmlAttr() — Conversion d'un hachage en une chaine d'attributs insérable dans un tag HTML.
- trans() — Recherche la traduction d'un texte (si le service $translator est disponible).