class MethodRouteMissingName

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/Tests/Core/Routing/UnsupportedRouteAttributePropertiesTest.php \Drupal\Tests\Core\Routing\MethodRouteMissingName

Test class.

Attributes

#[Route(name: 'prefix')]

Hierarchy

Expanded class hierarchy of MethodRouteMissingName

File

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

Namespace

Drupal\Tests\Core\Routing
View source
class MethodRouteMissingName {
  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.