public function AcquiaDAM_Assets_Folder::getRoot in Media: Acquia DAM 7
Retrieve the Root folder listing.
Return value
AcquiaDAM_Assets_Folder[] An array of folders located at the root.
File
- src/
AcquiaDAM/ AcquiaDAM_Assets_Folder.inc, line 47
Class
- AcquiaDAM_Assets_Folder
- Acquia DAM asset implmentation for Folder assets.
Code
public function getRoot() {
$result = [];
$rootFolders = $this
->request('folders');
if (!empty($rootFolders)) {
foreach ($rootFolders as $folder) {
$result[] = new static($folder, $this->depends);
}
}
return $result;
}