function UserLanguageTestController::buildPostResponse

Same name in other branches
  1. 11.x core/modules/user/tests/modules/user_language_test/src/Controller/UserLanguageTestController.php \Drupal\user_language_test\Controller\UserLanguageTestController::buildPostResponse()

Builds the response.

1 string reference to 'UserLanguageTestController::buildPostResponse'
user_language_test.routing.yml in core/modules/user/tests/modules/user_language_test/user_language_test.routing.yml
core/modules/user/tests/modules/user_language_test/user_language_test.routing.yml

File

core/modules/user/tests/modules/user_language_test/src/Controller/UserLanguageTestController.php, line 13

Class

UserLanguageTestController
Returns responses for User Language Test routes.

Namespace

Drupal\user_language_test\Controller

Code

public function buildPostResponse() {
    return [
        '#markup' => 'It works!',
    ];
}

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