class MethodRouteLocalizedPaths

Same name and namespace in other branches
  1. main core/tests/Drupal/Tests/Core/Routing/UnsupportedRouteAttributePropertiesTest.php \Drupal\Tests\Core\Routing\MethodRouteLocalizedPaths

Test class.

Hierarchy

Expanded class hierarchy of MethodRouteLocalizedPaths

File

core/tests/Drupal/Tests/Core/Routing/UnsupportedRouteAttributePropertiesTest.php, line 85

Namespace

Drupal\Tests\Core\Routing
View source
class MethodRouteLocalizedPaths {
  public function attributeMethod() : array {
    return [
      '#markup' => 'Testing method with a Route attribute',
    ];
  }

}

Members

Title Sort descending Modifiers Object type Summary
MethodRouteLocalizedPaths::attributeMethod public function #[Route([
'de' => '/test_method_attribute',
], 'MethodRouteLocalizedPaths')]

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