function MethodRouteLocalizedPaths::attributeMethod
Attributes
#[Route([
'de' => '/test_method_attribute',
], 'MethodRouteLocalizedPaths')]
File
-
core/
tests/ Drupal/ Tests/ Core/ Routing/ UnsupportedRouteAttributePropertiesTest.php, line 87
Class
- MethodRouteLocalizedPaths
- Test class.
Namespace
Drupal\Tests\Core\RoutingCode
public function attributeMethod() : array {
return [
'#markup' => 'Testing method with a Route attribute',
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.