1 | <?php |
||
17 | class DataAttributesExtension extends AbstractExtension |
||
18 | { |
||
19 | /** |
||
20 | * Returns a list of functions to add to the existing list. |
||
21 | * |
||
22 | * @return array |
||
23 | */ |
||
24 | public function getFilters(): array |
||
34 | |||
35 | /** |
||
36 | * Processes an associative list of data attributes and returns them as HTML attributes list |
||
37 | * in the form of <code>data-<attribute_name>="<attribute_value>"</code>. |
||
38 | * |
||
39 | * @param array $dataAttributes |
||
40 | * |
||
41 | * @return string |
||
42 | */ |
||
43 | public function serializeDataAttributes(array $dataAttributes): string |
||
56 | } |
||
57 |