1 | <?php |
||
23 | class TypographyTwigExtension extends AbstractTypographyTwigExtension { |
||
24 | |||
25 | /** |
||
26 | * Service name. |
||
27 | * |
||
28 | * @var string |
||
29 | */ |
||
30 | const SERVICE_NAME = "webeweb.adminbsb.twig.extension.typography"; |
||
31 | |||
32 | /** |
||
33 | * Displays an AdminBSB bold text. |
||
34 | * |
||
35 | * @param array $args The arguments. |
||
36 | * @return string Returns the AdminBSB bold text. |
||
37 | */ |
||
38 | public function adminBSBBoldFunction(array $args = []) { |
||
39 | return $this->adminBSBBold(ArrayHelper::get($args, "content")); |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * Displays an AdminBSB italic text. |
||
44 | * |
||
45 | * @param array $args The arguments. |
||
46 | * @return string Returns the AdminBSB italic text. |
||
47 | */ |
||
48 | public function adminBSBItalicFunction(array $args = []) { |
||
49 | return $this->adminBSBItalic(ArrayHelper::get($args, "content")); |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * Displays an AdminBSB line through text. |
||
54 | * |
||
55 | * @param array $args The arguments. |
||
56 | * @return string Returns the AdminBSB line through text. |
||
57 | */ |
||
58 | public function adminBSBLineThroughFunction(array $args = []) { |
||
59 | return $this->adminBSBLineThrough(ArrayHelper::get($args, "content")); |
||
60 | } |
||
61 | |||
62 | /** |
||
63 | * Displays an AdminBSB overlined text. |
||
64 | * |
||
65 | * @param array $args The arguments. |
||
66 | * @return string Returns the AdminBSB overlined text. |
||
67 | */ |
||
68 | public function adminBSBOverlineFunction(array $args = []) { |
||
71 | |||
72 | /** |
||
73 | * Displays an AdminBSB underline text. |
||
74 | * |
||
75 | * @param array $args The arguments. |
||
76 | * @return string Returns the AdminBSB underline text. |
||
77 | */ |
||
78 | public function adminBSBUnderlineFunction(array $args = []) { |
||
81 | |||
82 | /** |
||
83 | * Get the Twig filters. |
||
84 | * |
||
85 | * @return Twig_SimpleFilter[] Returns the Twig filters. |
||
86 | */ |
||
87 | public function getFilters() { |
||
90 | |||
91 | /** |
||
92 | * Get the Twig functions. |
||
93 | * |
||
94 | * @return array Returns the Twig functions. |
||
95 | */ |
||
96 | public function getFunctions() { |
||
115 | } |
||
116 |