1 | <?php |
||
20 | class ButtonRenderer { |
||
21 | |||
22 | /** |
||
23 | * Render an active. |
||
24 | * |
||
25 | * @param ButtonInterface $button The button. |
||
26 | * @return string|null Returns the rendered active. |
||
27 | */ |
||
28 | public static function renderActive(ButtonInterface $button): ?string { |
||
31 | |||
32 | /** |
||
33 | * Render a block. |
||
34 | * |
||
35 | * @param ButtonInterface $button The button. |
||
36 | * @return string|null Returns the rendered block. |
||
37 | */ |
||
38 | public static function renderBlock(ButtonInterface $button): ?string { |
||
41 | |||
42 | /** |
||
43 | * Render a content. |
||
44 | * |
||
45 | * @param ButtonInterface $button The button. |
||
46 | * @return string Returns the rendered block. |
||
47 | */ |
||
48 | public static function renderContent(ButtonInterface $button): ?string { |
||
51 | |||
52 | /** |
||
53 | * Render a data placement. |
||
54 | * |
||
55 | * @param ButtonInterface $button The button. |
||
56 | * @return string|null Returns the rendered data placement. |
||
57 | */ |
||
58 | public static function renderDataPlacement(ButtonInterface $button): ?string { |
||
61 | |||
62 | /** |
||
63 | * Render a data toggle. |
||
64 | * |
||
65 | * @param ButtonInterface $button The button. |
||
66 | * @return string|null Returns the rendered data toggle. |
||
67 | */ |
||
68 | public static function renderDataToggle(ButtonInterface $button): ?string { |
||
71 | |||
72 | /** |
||
73 | * Render a disabled. |
||
74 | * |
||
75 | * @param ButtonInterface $button The button. |
||
76 | * @return string|null Returns the rendered disabled. |
||
77 | */ |
||
78 | public static function renderDisabled(ButtonInterface $button): ?string { |
||
81 | |||
82 | /** |
||
83 | * Render a size. |
||
84 | * |
||
85 | * @param ButtonInterface $button The button. |
||
86 | * @return string|null Returns the rendered size. |
||
87 | */ |
||
88 | public static function renderSize(ButtonInterface $button): ?string { |
||
91 | |||
92 | /** |
||
93 | * Render a title. |
||
94 | * |
||
95 | * @param ButtonInterface $button The button. |
||
96 | * @return string|null Returns the rendered title. |
||
97 | */ |
||
98 | public static function renderTitle(ButtonInterface $button): ?string { |
||
101 | |||
102 | /** |
||
103 | * Render a type. |
||
104 | * |
||
105 | * @param ButtonInterface $button The button. |
||
106 | * @return string|null Returns the rendered type. |
||
107 | */ |
||
108 | public static function renderType(ButtonInterface $button): ?string { |
||
112 | } |
||
113 |