function TabbableShimTestController::build
Same name in other branches
- 9 core/modules/system/tests/modules/tabbable_shim_test/src/Controller/TabbableShimTestController.php \Drupal\tabbable_shim_test\Controller\TabbableShimTestController::build()
- 11.x core/modules/system/tests/modules/tabbable_shim_test/src/Controller/TabbableShimTestController.php \Drupal\tabbable_shim_test\Controller\TabbableShimTestController::build()
Provides a page with the tabbingManager library for testing :tabbable.
Return value
array The render array.
1 string reference to 'TabbableShimTestController::build'
- tabbable_shim_test.routing.yml in core/
modules/ system/ tests/ modules/ tabbable_shim_test/ tabbable_shim_test.routing.yml - core/modules/system/tests/modules/tabbable_shim_test/tabbable_shim_test.routing.yml
File
-
core/
modules/ system/ tests/ modules/ tabbable_shim_test/ src/ Controller/ TabbableShimTestController.php, line 18
Class
- TabbableShimTestController
- For testing the jQuery :tabbable shim.
Namespace
Drupal\tabbable_shim_test\ControllerCode
public function build() {
return [
'container' => [
'#type' => 'container',
'#attributes' => [
'id' => 'tabbable-test-container',
],
],
'#attached' => [
'library' => [
'core/drupal.autocomplete',
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.