You are here

public static function Imce::userFM in IMCE 8.2

Same name and namespace in other branches
  1. 8 src/Imce.php \Drupal\imce\Imce::userFM()
2 calls to Imce::userFM()
Imce::accessFilePaths in src/Imce.php
Checks if the selected file paths are accessible by a user with Imce.
KernelTestBasePlugin::getImceFM in tests/src/Kernel/Plugin/KernelTestBasePlugin.php
The Imce file manager.

File

src/Imce.php, line 34

Class

Imce
Imce container class for helper methods.

Namespace

Drupal\imce

Code

public static function userFM(AccountProxyInterface $user = NULL, $scheme = NULL, Request $request = NULL) {
  if ($conf = static::userConf($user, $scheme)) {
    return new ImceFM($conf, $user, $request);
  }
}