You are here

public static function Imce::access in IMCE 8

Same name and namespace in other branches
  1. 8.2 src/Imce.php \Drupal\imce\Imce::access()

Checks if a user has an imce profile assigned for a file scheme.

4 calls to Imce::access()
Imce::alterEditorJS in src/Plugin/BUEditorPlugin/Imce.php
ImceController::checkAccess in src/Controller/ImceController.php
Checks access to /imce/{scheme} path.
imce_field_widget_form_alter in ./imce.module
Implements hook_field_widget_form_alter().
imce_process_url_element in ./imce.module
Integrates Imce into an URL element.

File

src/Imce.php, line 18

Class

Imce
Imce container class for helper methods.

Namespace

Drupal\imce

Code

public static function access(AccountProxyInterface $user = NULL, $scheme = NULL) {
  return (bool) static::userProfile($user, $scheme);
}