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
DateTimeFormatterBase::buildDateWithIsoAttribute function core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeFormatterBase.php Creates a render array from a date object with ISO date attribute.
DateTimeRangeTrait::renderStartEndWithIsoAttribute function core/modules/datetime_range/src/DateTimeRangeTrait.php Creates a render array with ISO attributes given start/end dates.
DefaultPluginManager::$pluginDefinitionAttributeName property core/lib/Drupal/Core/Plugin/DefaultPluginManager.php The name of the attribute that contains the plugin definition.
DeprecationHookAttributeTestHooks class core/modules/system/tests/modules/deprecation_hook_attribute_test/src/Hook/DeprecationHookAttributeTestHooks.php Implements hooks for the deprecation hook attribute test.
DeprecationHookAttributeTestHooks.php file core/modules/system/tests/modules/deprecation_hook_attribute_test/src/Hook/DeprecationHookAttributeTestHooks.php
DeprecationHookAttributeTestHooks::deprecatedAlterAlterFirst function core/modules/system/tests/modules/deprecation_hook_attribute_test/src/Hook/DeprecationHookAttributeTestHooks.php Implements hook_deprecated_alter_alter().
DeprecationHookAttributeTestHooks::deprecatedHook function core/modules/system/tests/modules/deprecation_hook_attribute_test/src/Hook/DeprecationHookAttributeTestHooks.php Implements hook_deprecated_hook().
deprecation_hook_attribute_test.info.yml file core/modules/system/tests/modules/deprecation_hook_attribute_test/deprecation_hook_attribute_test.info.yml core/modules/system/tests/modules/deprecation_hook_attribute_test/deprecation_hook_attribute_test.info.yml
DocParser::collectAttributeTypeMetadata function core/lib/Drupal/Component/Annotation/Doctrine/DocParser.php Collects parsing metadata for a given attribute.
DocParserTest::testAnnotationWithAttributes function core/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php Tests annotation with attributes.
DocParserTest::testAnnotationWithAttributesError function core/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php Tests annotation with attributes error.
DocParserTest::testAnnotationWithAttributesWithVarTypeArrayError function core/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php Tests annotation with attributes with var type array error.
DocParserTest::testAnnotationWithRequiredAttributes function core/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php
DocParserTest::testAnnotationWithRequiredAttributesWithoutContructor function core/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php
DrupalTestCase::skipTestWithAttribute function core/tests/Drupal/Tests/DrupalTestCase.php Supports skipping tests with the Skip attribute.
Element::setAttributes function core/lib/Drupal/Core/Render/Element.php Sets HTML attributes based on element properties.
ElementInterface::setAttributes function core/lib/Drupal/Core/Render/Element/ElementInterface.php Sets a form element's class attribute.
ElementTest::providerTestSetAttributes function core/tests/Drupal/Tests/Core/Render/ElementTest.php Data provider for testSetAttributes().
ElementTest::testChildAttributes function core/modules/system/tests/src/Functional/Form/ElementTest.php Tests checkboxes and radios child element attributes.
ElementTest::testDetailsDescriptionAttributes function core/modules/system/tests/src/Functional/Form/ElementTest.php Tests description attributes of details.
ElementTest::testDetailsSummaryAttributes function core/modules/system/tests/src/Functional/Form/ElementTest.php Tests summary attributes of details.
ElementTest::testSetAttributes function core/tests/Drupal/Tests/Core/Render/ElementTest.php Tests the setAttributes() method.
ElementTest::testSubmitButtonAttribute function core/modules/system/tests/src/Functional/Form/ElementTest.php Tests the submit_button attribute.
EntityTestAttributeBundleClassHooks class core/modules/system/tests/modules/entity_test_attribute_bundle_class/src/Hook/EntityTestAttributeBundleClassHooks.php Hook implementations for entity_test_attribute_bundle_class.
EntityTestAttributeBundleClassHooks.php file core/modules/system/tests/modules/entity_test_attribute_bundle_class/src/Hook/EntityTestAttributeBundleClassHooks.php
EntityTestAttributeBundleClassHooks::entityBundleInfo function core/modules/system/tests/modules/entity_test_attribute_bundle_class/src/Hook/EntityTestAttributeBundleClassHooks.php Implements hook_entity_bundle_info().
EntityViewControllerTest::testFieldItemAttributes function core/modules/system/tests/src/Functional/Entity/EntityViewControllerTest.php Tests field item attributes.
entity_test_attribute_bundle_class.info.yml file core/modules/system/tests/modules/entity_test_attribute_bundle_class/entity_test_attribute_bundle_class.info.yml core/modules/system/tests/modules/entity_test_attribute_bundle_class/entity_test_attribute_bundle_class.info.yml
EquivalentUpdateTest::testAttributeOnInstall function core/modules/system/tests/src/Functional/UpdateSystem/EquivalentUpdateTest.php Tests MarkFutureUpdateEquivalent attribute functionality on module install.
equivalent_update_test_attribute_install.info.yml file core/modules/system/tests/modules/equivalent_update_test_attribute_install/equivalent_update_test_attribute_install.info.yml core/modules/system/tests/modules/equivalent_update_test_attribute_install/equivalent_update_test_attribute_install.info.yml
equivalent_update_test_attribute_install.install file core/modules/system/tests/modules/equivalent_update_test_attribute_install/equivalent_update_test_attribute_install.install
equivalent_update_test_attribute_install_update_100001 function core/modules/system/tests/modules/equivalent_update_test_attribute_install/equivalent_update_test_attribute_install.install Schema version 100001.
ExampleAttribute class core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/ExtraAttributes/ExampleAttribute.php #[\Attribute]
ExampleAttribute.php file core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/ExtraAttributes/ExampleAttribute.php
ExampleParentAttribute class core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/ExtraAttributes/ExampleParentAttribute.php #[\Attribute]
ExampleParentAttribute.php file core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/ExtraAttributes/ExampleParentAttribute.php
ExampleWithAttributeAndAnnotation class core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/custom_annotation/ExampleWithAttributeAndAnnotation.php Provides a test plugin with an annotation and attribute.
ExampleWithAttributeAndAnnotation.php file core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/custom_annotation/ExampleWithAttributeAndAnnotation.php
File::getMetadataAttributes function core/modules/media/src/Plugin/media/Source/File.php Gets a list of metadata attributes provided by this plugin.
File::METADATA_ATTRIBUTE_MIME constant core/modules/media/src/Plugin/media/Source/File.php Key for "MIME type" metadata attribute.
File::METADATA_ATTRIBUTE_NAME constant core/modules/media/src/Plugin/media/Source/File.php Key for "Name" metadata attribute.
File::METADATA_ATTRIBUTE_SIZE constant core/modules/media/src/Plugin/media/Source/File.php Key for "File size" metadata attribute.
FileMediaFormatterBase::prepareAttributes function core/modules/file/src/Plugin/Field/FieldFormatter/FileMediaFormatterBase.php Prepare the attributes according to the settings.
FileVideoFormatter::prepareAttributes function core/modules/file/src/Plugin/Field/FieldFormatter/FileVideoFormatter.php Prepare the attributes according to the settings.
FileVideoFormatterTest::testAttributes function core/modules/file/tests/src/Functional/Formatter/FileVideoFormatterTest.php Tests that the attributes added to the formatter are applied on render.
FilterHtml::filterAttributes function core/modules/filter/src/Plugin/Filter/FilterHtml.php Provides filtering of tag attributes into accepted HTML.
FilterHtml::filterElementAttributes function core/modules/filter/src/Plugin/Filter/FilterHtml.php Filters attributes on an element according to a list of allowed values.
FilterHtml::prepareAttributeValues function core/modules/filter/src/Plugin/Filter/FilterHtml.php Helper function to prepare attribute values including wildcards.
FilterHtmlTest::providerFilterAttributes function core/modules/filter/tests/src/Unit/FilterHtmlTest.php Provides data for testFilterAttributes.
FilterHtmlTest::testFilterAttributes function core/modules/filter/tests/src/Unit/FilterHtmlTest.php Tests filter attributes.

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