1 | <?php |
||
26 | abstract class AbstractTwigExtension extends Twig_Extension { |
||
27 | |||
28 | /** |
||
29 | * Default content. |
||
30 | * |
||
31 | * @var string |
||
32 | */ |
||
33 | const DEFAULT_CONTENT = " "; |
||
34 | |||
35 | /** |
||
36 | * Default href. |
||
37 | * |
||
38 | * @var string |
||
39 | */ |
||
40 | const DEFAULT_HREF = NavigationInterface::NAVIGATION_HREF_DEFAULT; |
||
41 | |||
42 | /** |
||
43 | * Twig environment. |
||
44 | * |
||
45 | * @var Twig_Environment |
||
46 | */ |
||
47 | private $twigEnvironment; |
||
48 | |||
49 | /** |
||
50 | * Constructor. |
||
51 | * |
||
52 | * @param Twig_Environment $twigEnvironment The twig environment. |
||
53 | */ |
||
54 | protected function __construct(Twig_Environment $twigEnvironment) { |
||
57 | |||
58 | /** |
||
59 | * Displays a Core HTML element. |
||
60 | * |
||
61 | * @param string $element The object. |
||
62 | * @param string $content The content. |
||
63 | * @param array $attrs The attributes. |
||
64 | * @return string Returns the Bootstrap HTML element. |
||
65 | */ |
||
66 | public static function coreHTMLElement($element, $content, array $attrs = []) { |
||
83 | |||
84 | /** |
||
85 | * Get the twig environment. |
||
86 | * |
||
87 | * @return Twig_Environment Returns the twig environment. |
||
88 | */ |
||
89 | public function getTwigEnvironment() { |
||
92 | |||
93 | /** |
||
94 | * Set the twig. |
||
95 | * |
||
96 | * @param Twig_Environment $twigEnvironment The twig environment. |
||
97 | * @return AbstractTwigExtension Returns this twig extension. |
||
98 | */ |
||
99 | protected function setTwigEnvironment(Twig_Environment $twigEnvironment) { |
||
103 | |||
104 | } |
||
105 |