You are here

class TestAccessCheck in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/system/tests/modules/router_test_directory/src/Access/TestAccessCheck.php \Drupal\router_test\Access\TestAccessCheck

Access check for test routes.

Hierarchy

Expanded class hierarchy of TestAccessCheck

File

core/modules/system/tests/modules/router_test_directory/src/Access/TestAccessCheck.php, line 16
Contains \Drupal\router_test\Access\TestAccessCheck.

Namespace

Drupal\router_test\Access
View source
class TestAccessCheck implements AccessInterface {

  /**
   * Checks access.
   *
   * @return string
   *   A \Drupal\Core\Access\AccessInterface constant value.
   */
  public function access() {

    // No opinion, so other access checks should decide if access should be
    // allowed or not.
    return AccessResult::neutral();
  }

}

Members