UserLanguageTestController.php

Same filename in other branches
  1. 11.x core/modules/user/tests/modules/user_language_test/src/Controller/UserLanguageTestController.php

Namespace

Drupal\user_language_test\Controller

File

core/modules/user/tests/modules/user_language_test/src/Controller/UserLanguageTestController.php

View source
<?php

namespace Drupal\user_language_test\Controller;


/**
 * Returns responses for User Language Test routes.
 */
class UserLanguageTestController {
    
    /**
     * Builds the response.
     */
    public function buildPostResponse() {
        return [
            '#markup' => 'It works!',
        ];
    }

}

Classes

Title Deprecated Summary
UserLanguageTestController Returns responses for User Language Test routes.

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