function RenderArrayNonHtmlSubscriberTestController::rawString

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

Return value

string The value of raw string.

1 string reference to 'RenderArrayNonHtmlSubscriberTestController::rawString'
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 19

Class

RenderArrayNonHtmlSubscriberTestController
Controller for testing testing non-HTML requests.

Namespace

Drupal\render_array_non_html_subscriber_test

Code

public function rawString() {
  return new Response((string) $this->t('Raw controller response.'));
}

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