Search for attributes

  1. Search 7.x for attributes
  2. Search 9.5.x for attributes
  3. Search 8.9.x for attributes
  4. Search 10.3.x for attributes
  5. Other projects
Title Object type File name Summary
CKEditor5MarkupTest::testFilterHtmlAllowedGlobalAttributes function core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5MarkupTest.php Ensures that CKEditor 5 retains filter_html's allowed global attributes.
ConfigActionTest::testParentAttributes function core/tests/Drupal/KernelTests/Core/Config/Action/ConfigActionTest.php
DocParserTest::testAnnotationWithAttributes function core/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php @dataProvider getAnnotationVarTypeProviderValid
DocParserTest::testAnnotationWithAttributesError function core/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php @dataProvider getAnnotationVarTypeProviderInvalid
DocParserTest::testAnnotationWithAttributesWithVarTypeArrayError function core/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php @dataProvider getAnnotationVarTypeArrayProviderInvalid
DocParserTest::testAnnotationWithRequiredAttributes function core/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php
DocParserTest::testAnnotationWithRequiredAttributesWithoutContructor function core/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php
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::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.
EntityViewControllerTest::testFieldItemAttributes function core/modules/system/tests/src/Functional/Entity/EntityViewControllerTest.php Tests field item attributes.
File::getMetadataAttributes function core/modules/media/src/Plugin/media/Source/File.php Gets a list of metadata attributes provided by this plugin.
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.
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 @covers ::filterAttributes
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.
HookCollectorPass::getHookAttributesInClass function core/lib/Drupal/Core/Hook/HookCollectorPass.php An array of Hook attributes on this class with $method set.
HookCollectorPassTest::testGetHookAttributesInClass function core/tests/Drupal/Tests/Core/Hook/HookCollectorPassTest.php @covers ::getHookAttributesInClass
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.
HtmlAttributesTest::$modules property core/modules/system/tests/src/Functional/Theme/HtmlAttributesTest.php Modules to install.
HtmlAttributesTest::testThemeHtmlAttributes function core/modules/system/tests/src/Functional/Theme/HtmlAttributesTest.php Tests that attributes in the 'html' and 'body' elements can be altered.
HtmlResponseAttachmentsProcessor::formatHttpHeaderAttributes function core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php Formats an attribute string for an HTTP header.
HTMLRestrictions::findElementsOverridingGloballyDisallowedAttributes function core/modules/ckeditor5/src/HTMLRestrictions.php Finds elements overriding globally disallowed attributes.
Image::getMetadataAttributes function core/modules/media/src/Plugin/media/Source/Image.php Gets a list of metadata attributes provided by this plugin.
ImageFieldValidateTest::testRequiredAttributes function core/modules/image/tests/src/Functional/ImageFieldValidateTest.php Tests that required alt/title fields gets validated right.
ImageTestBase::imageAttributes function core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageTestBase.php Provides the relevant image attributes.
ImageTestBase::imageAttributesAsString function core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageTestBase.php Helper to format attributes.
ImageTestTestBase::imageAttributes function core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageTestTestBase.php Provides the relevant image attributes.
KernelTestBase::$backupStaticAttributes property core/tests/Drupal/KernelTests/KernelTestBase.php Back up and restore static class properties that may be changed by tests.
KernelTestBase::$backupStaticAttributesBlacklist property core/tests/Drupal/KernelTests/KernelTestBase.php Contains a few static class properties for performance.
LayoutBuilderBlocksTest::testPluginsProvidingCustomAttributesAndContextualLinks function core/modules/layout_builder/tests/src/Functional/LayoutBuilderBlocksTest.php Tests that block plugins can define custom attributes and contextual links.
LayoutBuilderCompatibilityTestBase::assertFieldAttributes function core/modules/layout_builder/tests/src/Kernel/LayoutBuilderCompatibilityTestBase.php Asserts that the rendered entity has the correct fields.
LayoutBuilderTest::testCustomSectionAttributes function core/modules/layout_builder/tests/src/Functional/LayoutBuilderTest.php Tests that sections can provide custom attributes.
Link::$attributes property core/modules/jsonapi/src/JsonApiResource/Link.php The link target attributes.

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