Attribute::addClass |
function |
core/lib/Drupal/Core/Template/Attribute.php |
Adds classes or merges them on to array of existing CSS classes. |
AttributeTest::testAddClasses |
function |
core/tests/Drupal/Tests/Core/Template/AttributeTest.php |
Tests adding class attributes with the AttributeArray helper method.
@covers ::addClass |
TwigExtensionTest::testTwigAddClass |
function |
core/tests/Drupal/Tests/Core/Template/TwigExtensionTest.php |
Tests Twig 'add_class' filter. |
TwigExtensionTest::providerTestTwigAddClass |
function |
core/tests/Drupal/Tests/Core/Template/TwigExtensionTest.php |
Provides data for ::testTwigAddClass(). |