class ClassRouteLocalizedPaths

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

Test class.

Attributes

#[Route([ 'de' => 'prefix/', ])]

Hierarchy

Expanded class hierarchy of ClassRouteLocalizedPaths

File

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

Namespace

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

}

Members

Title Sort descending Modifiers Object type Summary
ClassRouteLocalizedPaths::attributeMethod public function #[Route('/test_method_attribute')]

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