function RenderArrayNonHtmlSubscriberTestController::renderArray

Same name in other branches
  1. 9 core/modules/system/tests/modules/render_array_non_html_subscriber_test/src/RenderArrayNonHtmlSubscriberTestController.php \Drupal\render_array_non_html_subscriber_test\RenderArrayNonHtmlSubscriberTestController::renderArray()
  2. 10 core/modules/system/tests/modules/render_array_non_html_subscriber_test/src/RenderArrayNonHtmlSubscriberTestController.php \Drupal\render_array_non_html_subscriber_test\RenderArrayNonHtmlSubscriberTestController::renderArray()
  3. 11.x core/modules/system/tests/modules/render_array_non_html_subscriber_test/src/RenderArrayNonHtmlSubscriberTestController.php \Drupal\render_array_non_html_subscriber_test\RenderArrayNonHtmlSubscriberTestController::renderArray()

Return value

array

1 string reference to 'RenderArrayNonHtmlSubscriberTestController::renderArray'
render_array_non_html_subscriber_test.routing.yml in core/modules/system/tests/modules/render_array_non_html_subscriber_test/render_array_non_html_subscriber_test.routing.yml
core/modules/system/tests/modules/render_array_non_html_subscriber_test/render_array_non_html_subscriber_test.routing.yml

File

core/modules/system/tests/modules/render_array_non_html_subscriber_test/src/RenderArrayNonHtmlSubscriberTestController.php, line 20

Class

RenderArrayNonHtmlSubscriberTestController

Namespace

Drupal\render_array_non_html_subscriber_test

Code

public function renderArray() {
    return [
        '#type' => 'html_tag',
        '#tag' => 'p',
        '#value' => $this->t('Controller response successfully rendered.'),
    ];
}

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