You are here

public function TestController::accessParameter in Drupal 8

File

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

Class

TestController

Namespace

Drupal\Tests\Core\Access

Code

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