You are here

public function TabbableShimDialogIntegrationTestController::build in Drupal 10

Same name and namespace in other branches
  1. 9 core/modules/system/tests/modules/tabbable_shim_test/src/Controller/TabbableShimDialogIntegrationTestController.php \Drupal\tabbable_shim_test\Controller\TabbableShimDialogIntegrationTestController::build()

Provides a page with the jQuery UI dialog library for testing .

Return value

array The render array.

1 string reference to 'TabbableShimDialogIntegrationTestController::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/TabbableShimDialogIntegrationTestController.php, line 18

Class

TabbableShimDialogIntegrationTestController
For testing the jQuery :tabbable shim as used in a dialog.

Namespace

Drupal\tabbable_shim_test\Controller

Code

public function build() {
  return [
    'container' => [
      '#type' => 'container',
      '#attributes' => [
        'id' => 'tabbable-dialog-test-container',
      ],
    ],
    '#attached' => [
      'library' => [
        'core/drupal.dialog',
      ],
    ],
  ];
}