1 | <?php |
||
24 | class BootstrapBadgeExtension extends Twig_Extension |
||
25 | { |
||
26 | /** |
||
27 | * {@inheritDoc} |
||
28 | */ |
||
29 | public function getFunctions() |
||
39 | |||
40 | /** |
||
41 | * Returns the HTML code for a badge. |
||
42 | * |
||
43 | * @param string $text The text of the badge |
||
44 | * |
||
45 | * @return string The HTML code of the badge |
||
46 | */ |
||
47 | public function badgeFunction($text) |
||
51 | |||
52 | /** |
||
53 | * {@inheritDoc} |
||
54 | */ |
||
55 | public function getName() |
||
59 | } |
||
60 |