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
NavigationMenuMarkupTest::testToolbarButtonAttributes function core/modules/navigation/tests/src/Kernel/NavigationMenuMarkupTest.php Tests the generated HTML markup.
OEmbed::getMetadataAttributes function core/modules/media/src/Plugin/media/Source/OEmbed.php Gets a list of metadata attributes provided by this plugin.
OliveroTest::testPagerAttribute function core/tests/Drupal/FunctionalTests/Theme/OliveroTest.php Tests pager attribute is present using pager_test.
OliveroTest::testPagerAttribute function core/themes/olivero/tests/src/Functional/OliveroTest.php Tests pager attribute is present using pager_test.
OptionsFieldUIAllowedValuesTest::assertHasFocusByAttribute function core/modules/options/tests/src/FunctionalJavascript/OptionsFieldUIAllowedValuesTest.php Asserts an element specified by an attribute value has focus.
OptionsWidgetsTest::testSelectListRequiredErrorAttribute function core/modules/options/tests/src/Functional/OptionsWidgetsTest.php Tests the '#required_error' attribute for the select list.
PathValidator::getPathAttributes function core/lib/Drupal/Core/Path/PathValidator.php Gets the matched attributes for a given path.
PreprocessPagerTest::testPagerModalAttributes function core/modules/system/tests/src/Unit/Pager/PreprocessPagerTest.php Tests pager links get modal attributes when request is in a modal.
RenderCallbacks::removeTabAttributes function core/modules/announcements_feed/src/RenderCallbacks.php Render callback.
RenderCallbacks::removeTabAttributes function core/modules/toolbar/src/RenderCallbacks.php Render callback.
RenderElement::setAttributes function core/lib/Drupal/Core/Render/Element/RenderElement.php Sets a form element's class attribute.
RenderElementBase::setAttributes function core/lib/Drupal/Core/Render/Element/RenderElementBase.php Sets a form element's class attribute.
RenderElementTest::providerTestSetAttributes function core/tests/Drupal/Tests/Core/Render/Element/RenderElementTest.php Provides test data for testSetAttributes().
RenderElementTest::testSetAttributes function core/tests/Drupal/Tests/Core/Render/Element/RenderElementTest.php Tests set attributes.
ResourceTypeAttribute class core/modules/jsonapi/src/ResourceType/ResourceTypeAttribute.php Specialization of a ResourceTypeField to represent a resource type attribute.
ResourceTypeAttribute.php file core/modules/jsonapi/src/ResourceType/ResourceTypeAttribute.php
ResponsiveImageBuilder::buildSourceAttributes function core/modules/responsive_image/src/ResponsiveImageBuilder.php Helper function for \Drupal\responsive_image\Hook\ResponsiveImageThemeHooks::preprocessResponsiveImage().
ResponsiveImageFieldDisplayTest::testResponsiveImageFieldFormatterAttributesInRenderArray function core/modules/responsive_image/tests/src/Functional/ResponsiveImageFieldDisplayTest.php Tests formatter passes down any attributes in the render array.
router.builder.attributes service core/core.services.yml Drupal\Core\Routing\AttributeRouteDiscovery
RouterTest::testAttributeDiscovery function core/modules/system/tests/src/Functional/Routing/RouterTest.php Tests routes defined using PHP attributes.
route_special_attributes_subscriber service core/core.services.yml Drupal\Core\EventSubscriber\SpecialAttributesRouteSubscriber
SearchInterface::getAttributes function core/modules/search/src/Plugin/SearchInterface.php Returns the currently set attributes (from the request).
SearchLanguageTest::testLanguageAttributes function core/modules/search/tests/src/Functional/SearchLanguageTest.php Test language attribute "lang" for the search results.
SearchPluginBase::$searchAttributes property core/modules/search/src/Plugin/SearchPluginBase.php Array of attributes - usually from the request object.
SearchPluginBase::getAttributes function core/modules/search/src/Plugin/SearchPluginBase.php Returns the currently set attributes (from the request).
session.attribute_bag service core/core.services.yml Symfony\Component\HttpFoundation\Session\Attribute\AttributeBag
ShareEnvironmentTest::testAttribute function core/tests/Drupal/Tests/TestTools/Attribute/ShareEnvironmentTest.php Tests that the attribute makes a class share its environment.
ShareEnvironmentTest::testAttributeIsNotInherited function core/tests/Drupal/Tests/TestTools/Attribute/ShareEnvironmentTest.php Tests that the attribute is not inherited.
ShareEnvironmentTest::testAttributeOptingOut function core/tests/Drupal/Tests/TestTools/Attribute/ShareEnvironmentTest.php Tests that a class can state that it needs its own environment.
ShareEnvironmentTest::testNoAttribute function core/tests/Drupal/Tests/TestTools/Attribute/ShareEnvironmentTest.php Tests that a class declaring nothing does not share its environment.
SourceEditingPreventSelfXssConstraintValidator::getRegExForWildCardAttributeName function core/modules/ckeditor5/src/Plugin/Validation/Constraint/SourceEditingPreventSelfXssConstraintValidator.php Computes a regular expression for matching a wildcard attribute name.
SourceEditingPreventSelfXssConstraintValidator::isWildcardAttributeName function core/modules/ckeditor5/src/Plugin/Validation/Constraint/SourceEditingPreventSelfXssConstraintValidator.php Checks whether the given attribute name contains a wildcard, e.g. `data-*`.
SourceEditingRedundantTagsConstraintValidator::tagHasAttributeRestrictions function core/modules/ckeditor5/src/Plugin/Validation/Constraint/SourceEditingRedundantTagsConstraintValidator.php Inspects whether the given tag has attribute restrictions.
SourceEditingTest::doTestAllowingExtraAttributes function core/modules/ckeditor5/tests/src/FunctionalJavascript/SourceEditingTest.php Tests extra attributes with a specific data set.
SourceEditingTest::providerAllowingExtraAttributes function core/modules/ckeditor5/tests/src/FunctionalJavascript/SourceEditingTest.php Data provider for ::testAllowingExtraAttributes().
SourceEditingTest::testAllowingExtraAttributes function core/modules/ckeditor5/tests/src/FunctionalJavascript/SourceEditingTest.php Tests allowing extra attributes on already supported tags using GHS.
SpecialAttributesRouteSubscriber class core/lib/Drupal/Core/EventSubscriber/SpecialAttributesRouteSubscriber.php Provides a route subscriber which checks for invalid pattern variables.
SpecialAttributesRouteSubscriber.php file core/lib/Drupal/Core/EventSubscriber/SpecialAttributesRouteSubscriber.php
SpecialAttributesRouteSubscriber::alterRoutes function core/lib/Drupal/Core/EventSubscriber/SpecialAttributesRouteSubscriber.php Alters existing routes for a specific collection.
SpecialAttributesRouteSubscriber::onAlterRoutes function core/lib/Drupal/Core/EventSubscriber/SpecialAttributesRouteSubscriber.php Delegates the route altering to self::alterRoutes().
SpecialAttributesRouteSubscriberTest class core/tests/Drupal/Tests/Core/EventSubscriber/SpecialAttributesRouteSubscriberTest.php Tests Drupal\Core\EventSubscriber\SpecialAttributesRouteSubscriber.
SpecialAttributesRouteSubscriberTest.php file core/tests/Drupal/Tests/Core/EventSubscriber/SpecialAttributesRouteSubscriberTest.php
SpecialAttributesRouteSubscriberTest::providerTestOnRouteBuildingInvalidVariables function core/tests/Drupal/Tests/Core/EventSubscriber/SpecialAttributesRouteSubscriberTest.php Provides a list of routes with invalid route variables.
SpecialAttributesRouteSubscriberTest::providerTestOnRouteBuildingValidVariables function core/tests/Drupal/Tests/Core/EventSubscriber/SpecialAttributesRouteSubscriberTest.php Provides a list of routes with valid route variables.
SpecialAttributesRouteSubscriberTest::testOnRouteBuildingInvalidVariables function core/tests/Drupal/Tests/Core/EventSubscriber/SpecialAttributesRouteSubscriberTest.php Tests the onAlterRoutes method for invalid variables.
SpecialAttributesRouteSubscriberTest::testOnRouteBuildingValidVariables function core/tests/Drupal/Tests/Core/EventSubscriber/SpecialAttributesRouteSubscriberTest.php Tests the onAlterRoutes method for valid variables.
Standard::filterXssDataAttributes function core/modules/editor/src/EditorXssFilter/Standard.php Applies a very permissive XSS/HTML filter to data-attributes.
StaticReflectionClass::hasClassAttribute function core/lib/Drupal/Component/Annotation/Doctrine/StaticReflectionClass.php Determines if the class has the provided class attribute.
StaticReflectionParser::$classAttributes property core/lib/Drupal/Component/Annotation/Doctrine/StaticReflectionParser.php The class attributes.
StaticReflectionParser::$methodAttributes property core/lib/Drupal/Component/Annotation/Doctrine/StaticReflectionParser.php Method attributes

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