function TabbableShimDialogIntegrationTestController::build

Same name in other branches
  1. 9 core/modules/system/tests/modules/tabbable_shim_test/src/Controller/TabbableShimDialogIntegrationTestController.php \Drupal\tabbable_shim_test\Controller\TabbableShimDialogIntegrationTestController::build()
  2. 11.x 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',
            ],
        ],
    ];
}

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