public function ImceFolder::hasPredefinedPath in IMCE 8
Same name and namespace in other branches
- 8.2 src/ImceFolder.php \Drupal\imce\ImceFolder::hasPredefinedPath()
Returns the first predefined descendent including itself.
File
- src/
ImceFolder.php, line 223
Class
- ImceFolder
- Imce Folder.
Namespace
Drupal\imceCode
public function hasPredefinedPath() {
if ($this
->isPredefined()) {
return $this;
}
foreach ($this->subfolders as $folder) {
if ($folder = $folder
->hasPredefinedPath()) {
return $folder;
}
}
return FALSE;
}