You are here

public function TestController::accessParameter in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/Access/CustomAccessCheckTest.php \Drupal\Tests\Core\Access\TestController::accessParameter()

File

core/tests/Drupal/Tests/Core/Access/CustomAccessCheckTest.php, line 121
Contains \Drupal\Tests\Core\Access\CustomAccessCheckTest.

Class

TestController

Namespace

Drupal\Tests\Core\Access

Code

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