You are here

public function ImceController::checkAccess in IMCE 8

Same name and namespace in other branches
  1. 8.2 src/Controller/ImceController.php \Drupal\imce\Controller\ImceController::checkAccess()

Checks access to /imce/{scheme} path.

1 string reference to 'ImceController::checkAccess'
imce.routing.yml in ./imce.routing.yml
imce.routing.yml

File

src/Controller/ImceController.php, line 41

Class

ImceController
Controller routines for imce routes.

Namespace

Drupal\imce\Controller

Code

public function checkAccess($scheme) {
  return AccessResult::allowedIf(Imce::access($this
    ->currentUser(), $scheme));
}