Search for hasAttribute

  1. Search 7.x for hasAttribute
  2. Search 9.5.x for hasAttribute
  3. Search 8.9.x for hasAttribute
  4. Search 10.3.x for hasAttribute
  5. Other projects
Title Object type File name Summary
Attribute::hasAttribute function core/lib/Drupal/Core/Template/Attribute.php Checks if the storage has an attribute with the given name.
AttributeTest::providerTestHasAttribute function core/tests/Drupal/Tests/Core/Template/AttributeTest.php Provides tests data for testHasAttribute.
AttributeTest::testHasAttribute function core/tests/Drupal/Tests/Core/Template/AttributeTest.php @covers ::hasAttribute
@dataProvider providerTestHasAttribute
MediaEmbedFilterTestBase::assertHasAttributes function core/modules/media/tests/src/Kernel/MediaEmbedFilterTestBase.php Assert that the SimpleXMLElement object has the given attributes.
SourceEditingRedundantTagsConstraintValidator::tagHasAttributeRestrictions function core/modules/ckeditor5/src/Plugin/Validation/Constraint/SourceEditingRedundantTagsConstraintValidator.php Inspects whether the given tag has attribute restrictions.
StaticReflectionParser::hasAttribute function core/lib/Drupal/Component/Annotation/Doctrine/StaticReflectionParser.php
UrlTest::hasAttribute function core/modules/system/tests/src/Kernel/Common/UrlTest.php Checks for class existence in link.

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