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 main 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
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.
FilterSettings::$allowedHtmlDefaultAttributes property core/modules/filter/src/Plugin/migrate/process/FilterSettings.php Default attributes for migrating filter_html's 'allowed_html' setting.
FilterTestRestrictTagsAndAttributes class core/modules/filter/tests/filter_test/src/Plugin/Filter/FilterTestRestrictTagsAndAttributes.php Provides a test filter to restrict HTML tags and attributes.
FilterTestRestrictTagsAndAttributes.php file core/modules/filter/tests/filter_test/src/Plugin/Filter/FilterTestRestrictTagsAndAttributes.php
FilterTestRestrictTagsAndAttributes::getHTMLRestrictions function core/modules/filter/tests/filter_test/src/Plugin/Filter/FilterTestRestrictTagsAndAttributes.php Returns HTML allowed by this filter's configuration.
FilterTestRestrictTagsAndAttributes::process function core/modules/filter/tests/filter_test/src/Plugin/Filter/FilterTestRestrictTagsAndAttributes.php Performs the filter processing.
FormElement::setAttributes function core/lib/Drupal/Core/Render/Element/FormElement.php Sets a form element's class attribute.
FormElementLabelTest::testAttributes function core/modules/system/tests/src/Kernel/Form/FormElementLabelTest.php Ensures that attributes can be placed for form element label.
FormElementMaxlengthTest::testAttributes function core/modules/system/tests/src/Kernel/Form/FormElementMaxlengthTest.php Ensures maxlength attribute can be used in compatible elements.
FormTest::testRequiredAttribute function core/modules/system/tests/src/Functional/Form/FormTest.php Tests required attribute.
FormTestController::buttonWithFormAttribute function core/modules/system/tests/modules/form_test/src/Controller/FormTestController.php Returns a form and a button that has the form attribute.
FormTestRequiredAttributeForm class core/modules/system/tests/modules/form_test/src/Form/FormTestRequiredAttributeForm.php Builds a form to test the required attribute.
FormTestRequiredAttributeForm.php file core/modules/system/tests/modules/form_test/src/Form/FormTestRequiredAttributeForm.php
FormTestRequiredAttributeForm::buildForm function core/modules/system/tests/modules/form_test/src/Form/FormTestRequiredAttributeForm.php Form constructor.
FormTestRequiredAttributeForm::getFormId function core/modules/system/tests/modules/form_test/src/Form/FormTestRequiredAttributeForm.php Returns a unique string identifying the form.
FormTestRequiredAttributeForm::submitForm function core/modules/system/tests/modules/form_test/src/Form/FormTestRequiredAttributeForm.php Form submission handler.
FormTestSubmitButtonAttributeForm class core/modules/system/tests/modules/form_test/src/Form/FormTestSubmitButtonAttributeForm.php Builds a simple form to test the submit_button attribute.
FormTestSubmitButtonAttributeForm.php file core/modules/system/tests/modules/form_test/src/Form/FormTestSubmitButtonAttributeForm.php
FormTestSubmitButtonAttributeForm::buildForm function core/modules/system/tests/modules/form_test/src/Form/FormTestSubmitButtonAttributeForm.php Form constructor.
FormTestSubmitButtonAttributeForm::getFormId function core/modules/system/tests/modules/form_test/src/Form/FormTestSubmitButtonAttributeForm.php Returns a unique string identifying the form.
FormTestSubmitButtonAttributeForm::submitForm function core/modules/system/tests/modules/form_test/src/Form/FormTestSubmitButtonAttributeForm.php Form submission handler.
FriendsTest::testWithAttribute function core/tests/PHPStan/fixtures/test-methods-with-metadata.php #[Group('Joey')]
FriendsTest::testWithAttributeAndAllowedAnnotation function core/tests/PHPStan/fixtures/test-methods-with-metadata.php @legacy-covers ::phoebe
FriendsTest::testWithAttributeAndForbiddenAnnotation function core/tests/PHPStan/fixtures/test-methods-with-metadata.php @group Chandler
FriendsTrait::testInTraitWithAttribute function core/tests/PHPStan/fixtures/test-methods-with-metadata.php #[Group('Joey')]
FriendsTrait::testInTraitWithAttributeAndAllowedAnnotation function core/tests/PHPStan/fixtures/test-methods-with-metadata.php @legacy-covers ::phoebe
FriendsTrait::testInTraitWithAttributeAndForbiddenAnnotation function core/tests/PHPStan/fixtures/test-methods-with-metadata.php @group Chandler
GlobalAttribute class core/modules/ckeditor5/src/Plugin/CKEditor5Plugin/GlobalAttribute.php CKEditor 5 Global Attribute for filter_html.
GlobalAttribute.php file core/modules/ckeditor5/src/Plugin/CKEditor5Plugin/GlobalAttribute.php
GlobalAttribute::getDynamicPluginConfig function core/modules/ckeditor5/src/Plugin/CKEditor5Plugin/GlobalAttribute.php Allows a plugin to modify its static configuration.
HookAttributeInterface interface core/lib/Drupal/Core/Hook/Attribute/HookAttributeInterface.php Common interface for attributes used for hook discovery.
HookAttributeInterface.php file core/lib/Drupal/Core/Hook/Attribute/HookAttributeInterface.php
HookAttributeInvokeHook class core/modules/system/tests/modules/hook_collector_hook_attribute/src/Hook/HookAttributeInvokeHook.php Test Hook attribute named arguments.
HookAttributeInvokeHook.php file core/modules/system/tests/modules/hook_collector_hook_attribute/src/Hook/HookAttributeInvokeHook.php
HookAttributeInvokeHook::__invoke function core/modules/system/tests/modules/hook_collector_hook_attribute/src/Hook/HookAttributeInvokeHook.php Implements hook_cache_flush().
HookAttributeNamedArgumentsHook class core/modules/system/tests/modules/hook_collector_hook_attribute/src/Hook/HookAttributeNamedArgumentsHook.php Test Hook attribute named arguments.
HookAttributeNamedArgumentsHook.php file core/modules/system/tests/modules/hook_collector_hook_attribute/src/Hook/HookAttributeNamedArgumentsHook.php
HookAttributeNamedArgumentsHook::flush function core/modules/system/tests/modules/hook_collector_hook_attribute/src/Hook/HookAttributeNamedArgumentsHook.php Implements hook_cache_flush().
HookCollectorPass::getAttributeInstances function core/lib/Drupal/Core/Hook/HookCollectorPass.php Get attribute instances from class and method reflections.
HookCollectorPass::hasAnyAttribute function core/lib/Drupal/Core/Hook/HookCollectorPass.php Returns whether the existing attributes match any of the expected ones.
HookCollectorPassTest::testHookAttribute function core/tests/Drupal/KernelTests/Core/Hook/HookCollectorPassTest.php Test Hook attribute with named arguments, and class with invoke method.
hook_collector_hook_attribute.info.yml file core/modules/system/tests/modules/hook_collector_hook_attribute/hook_collector_hook_attribute.info.yml core/modules/system/tests/modules/hook_collector_hook_attribute/hook_collector_hook_attribute.info.yml
hook_collector_skip_procedural_attribute.info.yml file core/modules/system/tests/modules/hook_collector_skip_procedural_attribute/hook_collector_skip_procedural_attribute.info.yml core/modules/system/tests/modules/hook_collector_skip_procedural_attribute/hook_collector_skip_procedural_attribute.info.yml
hook_collector_skip_procedural_attribute.module file core/modules/system/tests/modules/hook_collector_skip_procedural_attribute/hook_collector_skip_procedural_attribute.module
hook_collector_skip_procedural_attribute_cache_flush function core/modules/system/tests/modules/hook_collector_skip_procedural_attribute/hook_collector_skip_procedural_attribute.module This implements a hook and should be picked up.
Html::$uriAttributes property core/lib/Drupal/Component/Utility/Html.php All attributes that may contain URIs.
HtmlAttributesTest class core/modules/system/tests/src/Functional/Theme/HtmlAttributesTest.php Tests attributes inserted in the 'html' and 'body' elements on the page.
HtmlAttributesTest.php file core/modules/system/tests/src/Functional/Theme/HtmlAttributesTest.php
HtmlAttributesTest::$defaultTheme property core/modules/system/tests/src/Functional/Theme/HtmlAttributesTest.php The theme to install as the default for testing.

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