Search for Attribute
- Search 7.x for Attribute
- Search 9.5.x for Attribute
- Search 8.9.x for Attribute
- Search 10.3.x for Attribute
- Search main for Attribute
- Other projects
Exact matches
| Title | Object type | File name | Summary |
|---|---|---|---|
| Attribute | class | core/ |
Collects, sanitizes, and renders HTML attributes. |
| Attribute | class | core/ |
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/ |
|
| TestAttribute::get | function | core/ |
Gets the value of an attribute. |
| TestAttributes | class | core/ |
Test controller for method-level Route attributes. |
| TestAttributes.php | file | core/ |
|
| TestAttributes::allProperties | function | core/ |
#[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/ |
#[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/ |
Provides a 'TestAttributes' block. |
| TestAttributesBlock.php | file | core/ |
|
| TestAttributesBlock::blockForm | function | core/ |
|
| TestAttributesBlock::build | function | core/ |
Builds and returns the renderable array for this block plugin. |
| TestClassAttribute | class | core/ |
Test controller for class-level Route attribute with method-level merging. |
| TestClassAttribute.php | file | core/ |
|
| TestClassAttribute::inherits | function | core/ |
#[Route(path: '/inherits', name: 'inherits')] |
| TestClassAttribute::overrides | function | core/ |
#[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/ |
#[Route(name: 'invoke')] |
| TestClassAttributeClassOnly | class | core/ |
Test controller: class-only #[Route] with bare __invoke(). |
| TestClassAttributeClassOnly.php | file | core/ |
|
| TestClassAttributeClassOnly::__invoke | function | core/ |
Provides test content. |
| TestRouteAttributeForm | class | core/ |
Test form object for Route attribute. |
| TestRouteAttributeForm.php | file | core/ |
|
| TestRouteAttributeForm::buildForm | function | core/ |
Form constructor. |
| TestRouteAttributeForm::getFormId | function | core/ |
Returns a unique string identifying the form. |
| TestRouteAttributeForm::submitForm | function | core/ |
Form submission handler. |
| TestSessionBag::$attributes | property | core/ |
Storage for data to save. |
| TestTitleClosureAttributes.php | file | core/ |
|
| TestTitleClosureAttributesPhp85 | class | core/ |
Test controller for PHP 8.5 title closures in Route attributes. |
| TestTitleClosureAttributesPhp85.php | file | core/ |
|
| TestTitleClosureAttributesPhp85::titleClosure | function | core/ |
Two routes on one method, each with its own title closure. |
| ThemeHookCollectorPass::getAttributeInstances | function | core/ |
Get attribute instances from class and method reflections. |
| ThemeTest::testAttributeMerging | function | core/ |
Tests attribute merging. |
| TitleClosureTest::testRepeatedAttributesHaveOwnTitles | function | core/ |
Tests that repeated attributes on one method keep their own closures. |
| TopBarItemLinkAttribute | class | core/ |
Provides a top bar item plugin for testing link attributes in the top bar. |
| TopBarItemLinkAttribute.php | file | core/ |
|
| TopBarItemLinkAttribute::build | function | core/ |
Builds and returns the renderable array for this top bar item plugin. |
| TrustedMethods::attributeCallback | function | core/ |
#[TrustedCallback] |
| TwigAttributesTest | class | core/ |
Tests Twig with Attribute objects. |
| TwigAttributesTest.php | file | core/ |
|
| TwigAttributesTest::testYield | function | core/ |
Tests that Attributes are rendered at the correct time within a macro. |
| TwigExtension::createAttribute | function | core/ |
Creates an Attribute object. |
| TwigExtension::setAttribute | function | core/ |
Sets an attribute on a given element. |
| TwigExtensionTest::providerTestTwigSetAttribute | function | core/ |
A data provider for ::testTwigSetAttribute(). |
| TwigExtensionTest::testCreateAttribute | function | core/ |
Tests creating attributes within a Twig template. |
| TwigExtensionTest::testLinkWithOverriddenAttributes | function | core/ |
Tests link with overridden attributes. |
| TwigExtensionTest::testTwigSetAttribute | function | core/ |
Tests Twig 'set_attribute' filter. |
| TwigSandboxTest::testTwigMethodAttributeAllowed | function | core/ |
Tests that method with TwigAllowed attribute is allowed. |
| TwigSandboxTest::testTwigMethodAttributeNotAllowed | function | core/ |
Tests that method without TwigAllowed attribute is not allowed. |
| UnsupportedRouteAttributePropertiesTest | class | core/ |
Tests \Drupal\Core\Routing\AttributeRouteDiscovery. |
| UnsupportedRouteAttributePropertiesTest.php | file | core/ |
|
| UnsupportedRouteAttributePropertiesTest::providerTestException | function | core/ |
|
| UnsupportedRouteAttributePropertiesTest::testException | function | core/ |
@legacy-covers ::createRouteCollection |
Pagination
- Previous page
- Page 12
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.