TestAccessCheck.php in Drupal 8
Same filename and directory in other branches
Namespace
Drupal\router_test\AccessFile
core/modules/system/tests/modules/router_test_directory/src/Access/TestAccessCheck.phpView source
<?php
namespace Drupal\router_test\Access;
use Drupal\Core\Access\AccessResult;
use Drupal\Core\Routing\Access\AccessInterface;
/**
* Access check for test routes.
*/
class TestAccessCheck implements AccessInterface {
/**
* Checks access.
*
* @return \Drupal\Core\Access\AccessResultInterface
* The access result.
*/
public function access() {
// No opinion, so other access checks should decide if access should be
// allowed or not.
return AccessResult::neutral();
}
}
Classes
Name | Description |
---|---|
TestAccessCheck | Access check for test routes. |