function TestClassAttribute::inherits

Same name and namespace in other branches
  1. main core/modules/system/tests/modules/router_test_directory/src/Controller/TestClassAttribute.php \Drupal\router_test\Controller\TestClassAttribute::inherits()

Attributes

#[Route(path: '/inherits', name: 'inherits')]

File

core/modules/system/tests/modules/router_test_directory/src/Controller/TestClassAttribute.php, line 30

Class

TestClassAttribute
Test controller for class-level Route attribute with method-level merging.

Namespace

Drupal\router_test\Controller

Code

public function inherits() : array {
  return [
    '#markup' => 'Inherits class globals',
  ];
}

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