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
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 template_preprocess_responsive_image().
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
StaticReflectionParser::getMethodAttributes function core/lib/Drupal/Component/Annotation/Doctrine/StaticReflectionParser.php
StaticReflectionParser::hasAttribute function core/lib/Drupal/Component/Annotation/Doctrine/StaticReflectionParser.php
StaticReflectionParser::hasClassAttribute function core/lib/Drupal/Component/Annotation/Doctrine/StaticReflectionParser.php Determines if the class has the provided class attribute.
StaticReflectionParserTest::testAttribute function core/tests/Drupal/Tests/Component/Annotation/Doctrine/StaticReflectionParserTest.php …
SubDirAttribute class core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/Attribute/SubDir/SubDirAttribute.php #[\Attribute]
SubDirAttribute.php file core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/Attribute/SubDir/SubDirAttribute.php
test-classes-missing-attributes.php file core/tests/PHPStan/fixtures/test-classes-missing-attributes.php
Test::getMetadataAttributes function core/modules/media/tests/modules/media_test_source/src/Plugin/media/Source/Test.php Gets a list of metadata attributes provided by this plugin.
TestAttribute class core/tests/Drupal/Tests/Core/Template/TwigSandboxTest.php Test class for HTML attributes collector, sanitizer, and renderer.

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