class TabbingManagerTestController
Same name and namespace in other branches
- 11.x core/modules/system/tests/modules/tabbingmanager_test/src/Controller/TabbingManagerTestController.php \Drupal\tabbingmanager_test\Controller\TabbingManagerTestController
For testing the Tabbing Manager.
Hierarchy
- class \Drupal\Core\Controller\ControllerBase extends \Drupal\Core\DependencyInjection\ContainerInjectionInterface uses \Drupal\Core\Logger\LoggerChannelTrait, \Drupal\Core\Messenger\MessengerTrait, \Drupal\Core\Routing\RedirectDestinationTrait, \Drupal\Core\StringTranslation\StringTranslationTrait
- class \Drupal\tabbingmanager_test\Controller\TabbingManagerTestController implements \Drupal\Core\Controller\ControllerBase
Expanded class hierarchy of TabbingManagerTestController
File
-
core/
modules/ system/ tests/ modules/ tabbingmanager_test/ src/ Controller/ TabbingManagerTestController.php, line 10
Namespace
Drupal\tabbingmanager_test\ControllerView source
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',
],
],
];
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.