function ClassRouteCondition::attributeMethod

Same name and namespace in other branches
  1. main core/tests/Drupal/Tests/Core/Routing/UnsupportedRouteAttributePropertiesTest.php \Drupal\Tests\Core\Routing\ClassRouteCondition::attributeMethod()

Attributes

#[Route('/test_method_attribute', 'test')]

File

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

Class

ClassRouteCondition
Test class.

Namespace

Drupal\Tests\Core\Routing

Code

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.