function TestController::modalContent

Same name in other branches
  1. 9 core/modules/system/tests/modules/dialog_renderer_test/src/Controller/TestController.php \Drupal\dialog_renderer_test\Controller\TestController::modalContent()
  2. 10 core/modules/system/tests/modules/dialog_renderer_test/src/Controller/TestController.php \Drupal\dialog_renderer_test\Controller\TestController::modalContent()
  3. 11.x core/modules/system/tests/modules/dialog_renderer_test/src/Controller/TestController.php \Drupal\dialog_renderer_test\Controller\TestController::modalContent()

Return modal content.

Return value

array Render array for display in modal.

1 string reference to 'TestController::modalContent'
dialog_renderer_test.routing.yml in core/modules/system/tests/modules/dialog_renderer_test/dialog_renderer_test.routing.yml
core/modules/system/tests/modules/dialog_renderer_test/dialog_renderer_test.routing.yml

File

core/modules/system/tests/modules/dialog_renderer_test/src/Controller/TestController.php, line 18

Class

TestController
Test controller display modal links and content.

Namespace

Drupal\dialog_renderer_test\Controller

Code

public function modalContent() {
    return [
        '#type' => 'markup',
        '#markup' => 'Look at me in a modal!',
    ];
}

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