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
TestAttribute class core/tests/Drupal/Tests/Component/Plugin/Discovery/AttributeBridgeDecoratorTest.php
TestAttribute::get function core/tests/Drupal/Tests/Component/Plugin/Discovery/AttributeBridgeDecoratorTest.php Gets the value of an attribute.
TestAttributes class core/modules/system/tests/modules/router_test_directory/src/Controller/TestAttributes.php Test controller for method-level Route attributes.
TestAttributes.php file core/modules/system/tests/modules/router_test_directory/src/Controller/TestAttributes.php
TestAttributes::allProperties function core/modules/system/tests/modules/router_test_directory/src/Controller/TestAttributes.php #[Route(path: '/test_all_properties/{parameter}', name: 'router_test.all_properties', title: 'Test all properties', requirements: [
'_access' => 'TRUE',
'parameter' => '\\d+',
], options: [
'_admin_route' => TRUE,
'utf8' => TRUE,
], defaults:…
TestAttributes::attributeMethod function core/modules/system/tests/modules/router_test_directory/src/Controller/TestAttributes.php #[Route('/test_method_attribute', name: 'router_test.method_attribute', requirements: [
'_access' => 'TRUE',
], alias: 'router_test.alias_test')]
#[Route('/test_method_attribute-other-path', name: 'router_test.method_attribute_other', requirements:…
TestAttributesBlock class core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/Block/TestAttributesBlock.php Provides a 'TestAttributes' block.
TestAttributesBlock.php file core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/Block/TestAttributesBlock.php
TestAttributesBlock::blockForm function core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/Block/TestAttributesBlock.php
TestAttributesBlock::build function core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/Block/TestAttributesBlock.php Builds and returns the renderable array for this block plugin.
TestClassAttribute class core/modules/system/tests/modules/router_test_directory/src/Controller/TestClassAttribute.php Test controller for class-level Route attribute with method-level merging.
TestClassAttribute.php file core/modules/system/tests/modules/router_test_directory/src/Controller/TestClassAttribute.php
TestClassAttribute::inherits function core/modules/system/tests/modules/router_test_directory/src/Controller/TestClassAttribute.php #[Route(path: '/inherits', name: 'inherits')]
TestClassAttribute::overrides function core/modules/system/tests/modules/router_test_directory/src/Controller/TestClassAttribute.php #[Route(path: '/overrides/{id}', name: 'overrides', requirements: [
'id' => '\\d+',
], options: [
'option_a' => 'from_method',
'option_b' => 'from_method',
], defaults: [
'default_a' => 'from_method',
'default_b' => 'from_method',
], host:…
TestClassAttribute::__invoke function core/modules/system/tests/modules/router_test_directory/src/Controller/TestClassAttribute.php #[Route(name: 'invoke')]
TestClassAttributeClassOnly class core/modules/system/tests/modules/router_test_directory/src/Controller/TestClassAttributeClassOnly.php Test controller: class-only #[Route] with bare __invoke().
TestClassAttributeClassOnly.php file core/modules/system/tests/modules/router_test_directory/src/Controller/TestClassAttributeClassOnly.php
TestClassAttributeClassOnly::__invoke function core/modules/system/tests/modules/router_test_directory/src/Controller/TestClassAttributeClassOnly.php Provides test content.
TestRouteAttributeForm class core/modules/system/tests/modules/router_test_directory/src/Form/TestRouteAttributeForm.php Test form object for Route attribute.
TestRouteAttributeForm.php file core/modules/system/tests/modules/router_test_directory/src/Form/TestRouteAttributeForm.php
TestRouteAttributeForm::buildForm function core/modules/system/tests/modules/router_test_directory/src/Form/TestRouteAttributeForm.php Form constructor.
TestRouteAttributeForm::getFormId function core/modules/system/tests/modules/router_test_directory/src/Form/TestRouteAttributeForm.php Returns a unique string identifying the form.
TestRouteAttributeForm::submitForm function core/modules/system/tests/modules/router_test_directory/src/Form/TestRouteAttributeForm.php Form submission handler.
TestSessionBag::$attributes property core/modules/system/tests/modules/session_test/src/Session/TestSessionBag.php Storage for data to save.
TestTitleClosureAttributes.php file core/modules/system/tests/modules/router_test_directory/src/Controller/TestTitleClosureAttributes.php
TestTitleClosureAttributesPhp85 class core/modules/system/tests/modules/router_test_directory/src/TestTitleClosureAttributesPhp85.php Test controller for PHP 8.5 title closures in Route attributes.
TestTitleClosureAttributesPhp85.php file core/modules/system/tests/modules/router_test_directory/src/TestTitleClosureAttributesPhp85.php
TestTitleClosureAttributesPhp85::titleClosure function core/modules/system/tests/modules/router_test_directory/src/TestTitleClosureAttributesPhp85.php Two routes on one method, each with its own title closure.
ThemeHookCollectorPass::getAttributeInstances function core/lib/Drupal/Core/Hook/ThemeHookCollectorPass.php Get attribute instances from class and method reflections.
ThemeTest::testAttributeMerging function core/modules/system/tests/src/Kernel/Theme/ThemeTest.php Tests attribute merging.
TitleClosureTest::testRepeatedAttributesHaveOwnTitles function core/tests/Drupal/KernelTests/Core/Routing/TitleClosureTest.php Tests that repeated attributes on one method keep their own closures.
TopBarItemLinkAttribute class core/modules/navigation/tests/navigation_test_top_bar/src/Plugin/TopBarItem/TopBarItemLinkAttribute.php Provides a top bar item plugin for testing link attributes in the top bar.
TopBarItemLinkAttribute.php file core/modules/navigation/tests/navigation_test_top_bar/src/Plugin/TopBarItem/TopBarItemLinkAttribute.php
TopBarItemLinkAttribute::build function core/modules/navigation/tests/navigation_test_top_bar/src/Plugin/TopBarItem/TopBarItemLinkAttribute.php Builds and returns the renderable array for this top bar item plugin.
TrustedMethods::attributeCallback function core/tests/Drupal/Tests/Core/Security/DoTrustedCallbackTraitTest.php #[TrustedCallback]
TwigAttributesTest class core/tests/Drupal/KernelTests/Core/Theme/TwigAttributesTest.php Tests Twig with Attribute objects.
TwigAttributesTest.php file core/tests/Drupal/KernelTests/Core/Theme/TwigAttributesTest.php
TwigAttributesTest::testYield function core/tests/Drupal/KernelTests/Core/Theme/TwigAttributesTest.php Tests that Attributes are rendered at the correct time within a macro.
TwigExtension::createAttribute function core/lib/Drupal/Core/Template/TwigExtension.php Creates an Attribute object.
TwigExtension::setAttribute function core/lib/Drupal/Core/Template/TwigExtension.php Sets an attribute on a given element.
TwigExtensionTest::providerTestTwigSetAttribute function core/tests/Drupal/Tests/Core/Template/TwigExtensionTest.php A data provider for ::testTwigSetAttribute().
TwigExtensionTest::testCreateAttribute function core/tests/Drupal/Tests/Core/Template/TwigExtensionTest.php Tests creating attributes within a Twig template.
TwigExtensionTest::testLinkWithOverriddenAttributes function core/tests/Drupal/Tests/Core/Template/TwigExtensionTest.php Tests link with overridden attributes.
TwigExtensionTest::testTwigSetAttribute function core/tests/Drupal/Tests/Core/Template/TwigExtensionTest.php Tests Twig 'set_attribute' filter.
TwigSandboxTest::testTwigMethodAttributeAllowed function core/tests/Drupal/Tests/Core/Template/TwigSandboxTest.php Tests that method with TwigAllowed attribute is allowed.
TwigSandboxTest::testTwigMethodAttributeNotAllowed function core/tests/Drupal/Tests/Core/Template/TwigSandboxTest.php Tests that method without TwigAllowed attribute is not allowed.
UnsupportedRouteAttributePropertiesTest class core/tests/Drupal/Tests/Core/Routing/UnsupportedRouteAttributePropertiesTest.php Tests \Drupal\Core\Routing\AttributeRouteDiscovery.
UnsupportedRouteAttributePropertiesTest.php file core/tests/Drupal/Tests/Core/Routing/UnsupportedRouteAttributePropertiesTest.php
UnsupportedRouteAttributePropertiesTest::providerTestException function core/tests/Drupal/Tests/Core/Routing/UnsupportedRouteAttributePropertiesTest.php
UnsupportedRouteAttributePropertiesTest::testException function core/tests/Drupal/Tests/Core/Routing/UnsupportedRouteAttributePropertiesTest.php @legacy-covers ::createRouteCollection

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