public function TabbableShimTestController::build in Drupal 9
Same name and namespace in other branches
- 10 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/jquery.ui',
],
],
];
}