You are here

public function FilebrowserValidator::getNodeRoot in Filebrowser 8.2

Same name and namespace in other branches
  1. 3.x src/Services/FilebrowserValidator.php \Drupal\filebrowser\Services\FilebrowserValidator::getNodeRoot()

Parameters

string $folder_path:

Return value

string tokenized folder path

File

src/Services/FilebrowserValidator.php, line 77

Class

FilebrowserValidator

Namespace

Drupal\filebrowser\Services

Code

public function getNodeRoot($folder_path) {

  // fixme: token support broken
  // token_replace is in D7 core *** if (module_exists("token")) {
  // $folder_path = \Drupal::token()->replace($path, ['type' => 'global', 'object' => NULL, 'leading' => '[',
  // $trailing = ']']);
  return $folder_path;
}