function TestController::accessParameter

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Access/CustomAccessCheckTest.php \Drupal\Tests\Core\Access\TestController::accessParameter()
  2. 8.9.x core/tests/Drupal/Tests/Core/Access/CustomAccessCheckTest.php \Drupal\Tests\Core\Access\TestController::accessParameter()
  3. 11.x core/tests/Drupal/Tests/Core/Access/CustomAccessCheckTest.php \Drupal\Tests\Core\Access\TestController::accessParameter()

File

core/tests/Drupal/Tests/Core/Access/CustomAccessCheckTest.php, line 152

Class

TestController

Namespace

Drupal\Tests\Core\Access

Code

public function accessParameter($parameter) {
    return AccessResult::allowedIf($parameter == 'TRUE');
}

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