TabbableShimDialogIntegrationTestController.php

Namespace

Drupal\tabbable_shim_test\Controller

File

core/modules/system/tests/modules/tabbable_shim_test/src/Controller/TabbableShimDialogIntegrationTestController.php

View source
<?php

namespace Drupal\tabbable_shim_test\Controller;

use Drupal\Core\Controller\ControllerBase;

/**
 * For testing the jQuery :tabbable shim as used in a dialog.
 */
class TabbableShimDialogIntegrationTestController extends ControllerBase {
  
  /**
   * Provides a page with the jQuery UI dialog library for testing .
   *
   * @return array
   *   The render array.
   */
  public function build() {
    return [
      'container' => [
        '#type' => 'container',
        '#attributes' => [
          'id' => 'tabbable-dialog-test-container',
        ],
      ],
      '#attached' => [
        'library' => [
          'core/jquery.ui.dialog',
        ],
      ],
    ];
  }

}

Classes

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

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