Search for %s

  1. Search 7.x for %s
  2. Search 8.9.x for %s
  3. Search 10.3.x for %s
  4. Search 11.x for %s
  5. Other projects
Title Object type File name Summary
Attribute::getClass function core/lib/Drupal/Core/Template/Attribute.php Gets the class attribute value if set.
Attribute::hasAttribute function core/lib/Drupal/Core/Template/Attribute.php Checks if the storage has an attribute with the given name.
Attribute::hasClass function core/lib/Drupal/Core/Template/Attribute.php Checks if the class array has the given CSS class.
Attribute::jsonSerialize function core/lib/Drupal/Core/Template/Attribute.php Returns a representation of the object for use in JSON serialization.
Attribute::offsetExists function core/lib/Drupal/Core/Template/Attribute.php #[\ReturnTypeWillChange]
Attribute::offsetGet function core/lib/Drupal/Core/Template/Attribute.php #[\ReturnTypeWillChange]
Attribute::offsetSet function core/lib/Drupal/Core/Template/Attribute.php #[\ReturnTypeWillChange]
Attribute::offsetUnset function core/lib/Drupal/Core/Template/Attribute.php #[\ReturnTypeWillChange]
Attribute::removeClass function core/lib/Drupal/Core/Template/Attribute.php Removes argument values from array of existing CSS classes.
Attribute::setAttribute function core/lib/Drupal/Core/Template/Attribute.php Sets values for an attribute key.
Attribute::storage function core/lib/Drupal/Core/Template/Attribute.php Returns the whole array.
Attribute::__construct function core/lib/Drupal/Core/Template/Attribute.php Constructs a \Drupal\Core\Template\Attribute object.
Attribute::__toString function core/lib/Drupal/Core/Template/Attribute.php Implements the magic __toString() method.
AttributeArray::offsetExists function core/lib/Drupal/Core/Template/AttributeArray.php #[\ReturnTypeWillChange]
AttributeArray::offsetGet function core/lib/Drupal/Core/Template/AttributeArray.php #[\ReturnTypeWillChange]
AttributeArray::offsetSet function core/lib/Drupal/Core/Template/AttributeArray.php #[\ReturnTypeWillChange]
AttributeArray::offsetUnset function core/lib/Drupal/Core/Template/AttributeArray.php #[\ReturnTypeWillChange]
AttributeArray::__toString function core/lib/Drupal/Core/Template/AttributeArray.php Implements the magic __toString() method.
AttributeBoolean::__toString function core/lib/Drupal/Core/Template/AttributeBoolean.php Implements the magic __toString() method.
AttributeHelper::attributeExists function core/lib/Drupal/Core/Template/AttributeHelper.php Checks if the given attribute collection has an attribute.
AttributeHelper::mergeCollections function core/lib/Drupal/Core/Template/AttributeHelper.php Merges two attribute collections.
AttributeHelper::__construct function core/lib/Drupal/Core/Template/AttributeHelper.php This class should not be instantiated.
AttributeHelperTest class core/tests/Drupal/Tests/Core/Template/AttributeHelperTest.php @coversDefaultClass \Drupal\Core\Template\AttributeHelper[[api-linebreak]]
@group Template
AttributeHelperTest.php file core/tests/Drupal/Tests/Core/Template/AttributeHelperTest.php
AttributeHelperTest::providerTestAttributeExists function core/tests/Drupal/Tests/Core/Template/AttributeHelperTest.php Provides tests data for testAttributeExists.
AttributeHelperTest::providerTestMergeCollections function core/tests/Drupal/Tests/Core/Template/AttributeHelperTest.php Provides tests data for testMergeCollections.
AttributeHelperTest::testAttributeExists function core/tests/Drupal/Tests/Core/Template/AttributeHelperTest.php @covers ::attributeExists[[api-linebreak]]
@dataProvider providerTestAttributeExists
AttributeHelperTest::testMergeCollections function core/tests/Drupal/Tests/Core/Template/AttributeHelperTest.php @covers ::mergeCollections[[api-linebreak]]
@dataProvider providerTestMergeCollections
AttributeHelperTest::testMergeCollectionsArgumentException function core/tests/Drupal/Tests/Core/Template/AttributeHelperTest.php @covers ::mergeCollections[[api-linebreak]]
AttributesTest class core/tests/Drupal/Tests/Core/Common/AttributesTest.php Tests the Drupal\Core\Template\Attribute functionality.
AttributesTest.php file core/tests/Drupal/Tests/Core/Common/AttributesTest.php
AttributesTest::providerTestAttributeData function core/tests/Drupal/Tests/Core/Common/AttributesTest.php Provides data for the Attribute test.
AttributesTest::testAttributeIteration function core/tests/Drupal/Tests/Core/Common/AttributesTest.php Tests attribute iteration.
AttributesTest::testAttributeValueBaseCopy function core/tests/Drupal/Tests/Core/Common/AttributesTest.php Tests AttributeValueBase copy.
AttributesTest::testDrupalAttributes function core/tests/Drupal/Tests/Core/Common/AttributesTest.php Tests casting an Attribute object to a string.
AttributeString class core/lib/Drupal/Core/Template/AttributeString.php A class that represents most standard HTML attributes.
AttributeString.php file core/lib/Drupal/Core/Template/AttributeString.php
AttributeString::__toString function core/lib/Drupal/Core/Template/AttributeString.php Implements the magic __toString() method.
AttributeTest class core/tests/Drupal/Tests/Core/Template/AttributeTest.php @coversDefaultClass \Drupal\Core\Template\Attribute[[api-linebreak]]
@group Template
AttributeTest.php file core/tests/Drupal/Tests/Core/Template/AttributeTest.php
AttributeTest::assertClass function core/tests/Drupal/Tests/Core/Template/AttributeTest.php Checks that the given CSS class is present in the given HTML snippet.
AttributeTest::assertID function core/tests/Drupal/Tests/Core/Template/AttributeTest.php Checks that the given CSS ID is present in the given HTML snippet.
AttributeTest::assertNoClass function core/tests/Drupal/Tests/Core/Template/AttributeTest.php Checks that the given CSS class is not present in the given HTML snippet.
AttributeTest::assertNoID function core/tests/Drupal/Tests/Core/Template/AttributeTest.php Checks that the given CSS ID is not present in the given HTML snippet.
AttributeTest::getXPathResultCount function core/tests/Drupal/Tests/Core/Template/AttributeTest.php Counts the occurrences of the given XPath query in a given HTML snippet.
AttributeTest::providerTestAttributeClassHelpers function core/tests/Drupal/Tests/Core/Template/AttributeTest.php Provides tests data for testEscaping.
AttributeTest::providerTestAttributeValues function core/tests/Drupal/Tests/Core/Template/AttributeTest.php
AttributeTest::providerTestHasAttribute function core/tests/Drupal/Tests/Core/Template/AttributeTest.php Provides tests data for testHasAttribute.
AttributeTest::providerTestMerge function core/tests/Drupal/Tests/Core/Template/AttributeTest.php Provides tests data for testMerge.
AttributeTest::testAdd function core/tests/Drupal/Tests/Core/Template/AttributeTest.php Tests adding new values to an existing part of the attribute.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.