TabbableShimTestController.php

Same filename and directory in other branches
  1. 9 core/modules/system/tests/modules/tabbable_shim_test/src/Controller/TabbableShimTestController.php
  2. 10 core/modules/system/tests/modules/tabbable_shim_test/src/Controller/TabbableShimTestController.php

Namespace

Drupal\tabbable_shim_test\Controller

File

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

View source
<?php

namespace Drupal\tabbable_shim_test\Controller;

use Drupal\Core\Controller\ControllerBase;

/**
 * For testing the jQuery :tabbable shim.
 */
class TabbableShimTestController extends ControllerBase {
    
    /**
     * Provides a page with the tabbingManager library for testing :tabbable.
     *
     * @return array
     *   The render array.
     */
    public function build() {
        return [
            'container' => [
                '#type' => 'container',
                '#attributes' => [
                    'id' => 'tabbable-test-container',
                ],
            ],
            '#attached' => [
                'library' => [
                    'core/drupal.autocomplete',
                ],
            ],
        ];
    }

}

Classes

Title Deprecated Summary
TabbableShimTestController For testing the jQuery :tabbable shim.

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