public function FilebrowserValidator::getNodeRoot in Filebrowser 3.x
Same name and namespace in other branches
- 8.2 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
Namespace
Drupal\filebrowser\ServicesCode
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;
}