Search for Attribute

  1. Search 7.x for Attribute
  2. Search 9.5.x for Attribute
  3. Search 8.9.x for Attribute
  4. Search 10.3.x for Attribute
  5. Search 11.x for Attribute
  6. Other projects

Exact matches

These are exact matches according to your search
Title Object type File name Summary
Attribute class core/lib/Drupal/Core/Template/Attribute.php Collects, sanitizes, and renders HTML attributes.
Attribute class core/lib/Drupal/Component/Annotation/Doctrine/Annotation/Attribute.php Annotation that can be used to signal to the parser to check the attribute type during the parsing process.

All search results

Title Object type File name Summary
AttributeTest::testHasAttribute function core/tests/Drupal/Tests/Core/Template/AttributeTest.php Tests has attribute.
AttributeTest::testHasClass function core/tests/Drupal/Tests/Core/Template/AttributeTest.php Tests checking for class names with the Attribute method.
AttributeTest::testIterate function core/tests/Drupal/Tests/Core/Template/AttributeTest.php Tests iterating on the values of the attribute.
AttributeTest::testMerge function core/tests/Drupal/Tests/Core/Template/AttributeTest.php Tests merge.
AttributeTest::testMergeArgumentException function core/tests/Drupal/Tests/Core/Template/AttributeTest.php Tests merge argument exception.
AttributeTest::testPrint function core/tests/Drupal/Tests/Core/Template/AttributeTest.php Tests printing of an attribute.
AttributeTest::testRemove function core/tests/Drupal/Tests/Core/Template/AttributeTest.php Tests removing of values.
AttributeTest::testRemoveAttribute function core/tests/Drupal/Tests/Core/Template/AttributeTest.php Tests removing attributes.
AttributeTest::testRemoveClasses function core/tests/Drupal/Tests/Core/Template/AttributeTest.php Tests removing class attributes with the AttributeArray helper method.
AttributeTest::testSet function core/tests/Drupal/Tests/Core/Template/AttributeTest.php Tests set of values.
AttributeTest::testSetAttribute function core/tests/Drupal/Tests/Core/Template/AttributeTest.php Tests setting attributes.
AttributeTest::testStorage function core/tests/Drupal/Tests/Core/Template/AttributeTest.php Tests the storage method.
AttributeTest::testTwigAddRemoveClasses function core/tests/Drupal/Tests/Core/Template/AttributeTest.php Tests the twig calls to the Attribute.
AttributeValueBase class core/lib/Drupal/Core/Template/AttributeValueBase.php Defines the base class for an attribute type.
AttributeValueBase.php file core/lib/Drupal/Core/Template/AttributeValueBase.php
AttributeValueBase::$name property core/lib/Drupal/Core/Template/AttributeValueBase.php The name of the value.
AttributeValueBase::$value property core/lib/Drupal/Core/Template/AttributeValueBase.php The value itself.
AttributeValueBase::render function core/lib/Drupal/Core/Template/AttributeValueBase.php Returns a string representation of the attribute.
AttributeValueBase::RENDER_EMPTY_ATTRIBUTE constant core/lib/Drupal/Core/Template/AttributeValueBase.php Renders '$name=""' if $value is an empty string.
AttributeValueBase::value function core/lib/Drupal/Core/Template/AttributeValueBase.php Returns the raw value.
AttributeValueBase::__construct function core/lib/Drupal/Core/Template/AttributeValueBase.php Constructs a \Drupal\Core\Template\AttributeValueBase object.
AttributeValueBase::__toString function core/lib/Drupal/Core/Template/AttributeValueBase.php Implements the magic __toString() method.
AttributeXss class core/modules/link/src/AttributeXss.php Defines a class for attribute XSS filtering.
AttributeXss.php file core/modules/link/src/AttributeXss.php
AttributeXss::attributes function core/modules/link/src/AttributeXss.php Filters attributes.
AttributeXss::sanitizeAttributes function core/modules/link/src/AttributeXss.php Sanitizes attributes.
AttributeXssTest class core/modules/link/tests/src/Unit/AttributeXssTest.php Tests AttributeXss.
AttributeXssTest.php file core/modules/link/tests/src/Unit/AttributeXssTest.php
AttributeXssTest::providerSanitizeAttributes function core/modules/link/tests/src/Unit/AttributeXssTest.php Data provider for ::testSanitizeAttributes.
AttributeXssTest::testSanitizeAttributes function core/modules/link/tests/src/Unit/AttributeXssTest.php Covers ::sanitizeAttributes.
BigPipeStrategy::placeholderIsAttributeSafe function core/modules/big_pipe/src/Render/Placeholder/BigPipeStrategy.php Determines whether the given placeholder is attribute-safe or not.
BlockBackwardCompatibilityTest::testAttributeCopy function core/themes/stable9/tests/Unit/BlockBackwardCompatibilityTest.php Tests copying content attributes to the wrapper.
BlockViewBuilderTest::testAttributesPulledUpWithoutTypeOrTheme function core/modules/block/tests/src/Kernel/BlockViewBuilderTest.php Tests that #attributes are pulled up when no #type or #theme is set.
BundleClassTest::$alterAttributeBundleInfo property core/tests/Drupal/KernelTests/Core/Entity/BundleClassTest.php Controls whether ::entityBundleInfoAlter() will alter bundle information.
BundleClassTest::testBundleClassAttributeDiscovery function core/tests/Drupal/KernelTests/Core/Entity/BundleClassTest.php Tests bundle class discovery via attributes.
ChooseBlockController::getAjaxAttributes function core/modules/layout_builder/src/Controller/ChooseBlockController.php Get dialog attributes if an ajax request.
CKEditor5MarkupTest::testAttributeEncoding function core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5MarkupTest.php Ensures that attribute values are encoded.
CKEditor5MarkupTest::testFilterHtmlAllowedGlobalAttributes function core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5MarkupTest.php Ensures that CKEditor 5 retains filter_html's allowed global attributes.
ClaroTest::testPagerAttribute function core/tests/Drupal/FunctionalTests/Theme/ClaroTest.php Tests pager attribute is present using pager_test.
ClassRouteCondition::attributeMethod function core/tests/Drupal/Tests/Core/Routing/UnsupportedRouteAttributePropertiesTest.php #[Route('/test_method_attribute', 'test')]
ClassRouteLocale::attributeMethod function core/tests/Drupal/Tests/Core/Routing/UnsupportedRouteAttributePropertiesTest.php #[Route('/test_method_attribute')]
ClassRouteLocalizedPaths::attributeMethod function core/tests/Drupal/Tests/Core/Routing/UnsupportedRouteAttributePropertiesTest.php #[Route('/test_method_attribute')]
ComponentElement::mergeElementAttributesToPropAttributes function core/lib/Drupal/Core/Render/Element/ComponentElement.php Merge element attributes with props attributes.
ComponentRenderTest::testCheckElementAttributesAndPropAttributesMerging function core/tests/Drupal/KernelTests/Components/ComponentRenderTest.php Ensures the element and prop attributes are merged properly.
ComponentRenderTest::testRenderAttributeMerging function core/tests/Drupal/KernelTests/Components/ComponentRenderTest.php Ensures the attributes are merged properly.
ConcreteWithAttributeTest class core/tests/PHPStan/fixtures/test-classes-with-metadata.php #[Group('Test')]
ConfigActionAttributeTest class core/tests/Drupal/Tests/Core/Config/Action/ConfigActionAttributeTest.php Tests Drupal\Core\Config\Action\Attribute\ConfigAction.
ConfigActionAttributeTest.php file core/tests/Drupal/Tests/Core/Config/Action/ConfigActionAttributeTest.php
ConfigActionAttributeTest::testNoLabelNoDeriver function core/tests/Drupal/Tests/Core/Config/Action/ConfigActionAttributeTest.php Tests no label no deriver.
ConfigActionTest::testParentAttributes function core/tests/Drupal/KernelTests/Core/Config/Action/ConfigActionTest.php Tests that parent attributes are properly discovered.

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