You are here

public function BasicAuthTestController::modifyState in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/basic_auth/tests/modules/basic_auth_test/src/BasicAuthTestController.php \Drupal\basic_auth_test\BasicAuthTestController::modifyState()
  2. 9 core/modules/basic_auth/tests/modules/basic_auth_test/src/BasicAuthTestController.php \Drupal\basic_auth_test\BasicAuthTestController::modifyState()

See also

\Drupal\basic_auth\Tests\Authentication\BasicAuthTest::testControllerNotCalledBeforeAuth()

1 string reference to 'BasicAuthTestController::modifyState'
basic_auth_test.routing.yml in core/modules/basic_auth/tests/modules/basic_auth_test/basic_auth_test.routing.yml
core/modules/basic_auth/tests/modules/basic_auth_test/basic_auth_test.routing.yml

File

core/modules/basic_auth/tests/modules/basic_auth_test/src/BasicAuthTestController.php, line 10

Class

BasicAuthTestController

Namespace

Drupal\basic_auth_test

Code

public function modifyState() {
  \Drupal::state()
    ->set('basic_auth_test.state.controller_executed', TRUE);
  return [
    '#markup' => 'Done',
  ];
}