function TestInvalidController::build

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

An abstract method, which is not allowed on a non-abstract class.

Return value

array A render array.

File

core/modules/system/tests/modules/router_test_directory/src/Controller/TestInvalidController.php, line 18

Class

TestInvalidController
A structurally invalid controller that cannot be autoloaded.

Namespace

Drupal\router_test\Controller

Code

abstract public function build() : array;

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