TabbingManagerTestController.php
Same filename in other branches
Namespace
Drupal\tabbingmanager_test\ControllerFile
-
core/
modules/ system/ tests/ modules/ tabbingmanager_test/ src/ Controller/ TabbingManagerTestController.php
View source
<?php
declare (strict_types=1);
namespace Drupal\tabbingmanager_test\Controller;
use Drupal\Core\Controller\ControllerBase;
/**
* For testing the Tabbing Manager.
*/
class TabbingManagerTestController extends ControllerBase {
/**
* Provides a page with the tabbingManager library for testing tabbing manager.
*
* @return array
* The render array.
*/
public function build() {
return [
'container' => [
'#type' => 'container',
'#attributes' => [
'id' => 'tabbingmanager-test-container',
],
'first' => [
'#type' => 'textfield',
'#title' => $this->t('First'),
'#attributes' => [
'id' => 'first',
],
],
'second' => [
'#type' => 'textfield',
'#title' => $this->t('Second'),
'#attributes' => [
'id' => 'second',
],
],
'third' => [
'#type' => 'textfield',
'#title' => $this->t('Third'),
'#attributes' => [
'id' => 'third',
],
],
],
'another_container' => [
'#type' => 'container',
'#attributes' => [
'id' => 'tabbingmanager-test-another-container',
],
'fourth' => [
'#type' => 'textfield',
'#title' => $this->t('Fourth'),
'#attributes' => [
'id' => 'fourth',
],
],
'fifth' => [
'#type' => 'textfield',
'#title' => $this->t('Fifth'),
'#attributes' => [
'id' => 'fifth',
],
],
'sixth' => [
'#type' => 'textfield',
'#title' => $this->t('Sixth'),
'#attributes' => [
'id' => 'sixth',
],
],
],
'#attached' => [
'library' => [
'core/drupal.tabbingmanager',
],
],
];
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
TabbingManagerTestController | For testing the Tabbing Manager. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.