function TestMissingDependency::build

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

Builds something.

Attributes

#[Route('/test_missing_dependency', name: 'router_test.missing_dependency')]

Return value

array A render array.

File

core/modules/system/tests/modules/router_test_directory/src/Controller/TestMissingDependency.php, line 25

Class

TestMissingDependency
A controller that declares a route but extends a class from a missing module.

Namespace

Drupal\router_test\Controller

Code

public function build() : array {
  return [];
}

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