Exponential 5.x Kernel 7.5.40 Exponential New Stack (Symfony-based) Kernel — PHP Class Reference

Public Member Functions | List of all members
eZ\Publish\Core\MVC\Symfony\Templating\Twig\Extension\DataAttributesExtension Class Reference

Twig common extension for general use helpers. More...

Inheritance diagram for eZ\Publish\Core\MVC\Symfony\Templating\Twig\Extension\DataAttributesExtension:

## Public Member Functions
| getFilters ()
| Returns a list of functions to add to the existing list. More...
| serializeDataAttributes (array $dataAttributes)
| Processes an associative list of data attributes and returns them as HTML attributes list in the form of `data-<attribute_name>="<attribute_value>"`. More...

## Detailed Description

Twig common extension for general use helpers.

Definition at line 17 of file DataAttributesExtension.php.

## Member Function Documentation

## ◆ getFilters()

eZ\Publish\Core\MVC\Symfony\Templating\Twig\Extension\DataAttributesExtension::getFilters | ( |  | ) |

Returns a list of functions to add to the existing list.

Returns
  array

Definition at line 24 of file DataAttributesExtension.php.

## ◆ serializeDataAttributes()

eZ\Publish\Core\MVC\Symfony\Templating\Twig\Extension\DataAttributesExtension::serializeDataAttributes | ( | array | $dataAttributes | ) |

Processes an associative list of data attributes and returns them as HTML attributes list in the form of `data-<attribute_name>="<attribute_value>"`.

Parameters

  array | $dataAttributes |

Returns
  string

Definition at line 43 of file DataAttributesExtension.php.

The documentation for this class was generated from the following file:

- DataAttributesExtension.php

Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.