protected function CmisBrowser::printFolderContent in CMIS API 8.2
Same name and namespace in other branches
- 8 src/CmisBrowser.php \Drupal\cmis\CmisBrowser::printFolderContent()
- 3.0.x src/CmisBrowser.php \Drupal\cmis\CmisBrowser::printFolderContent()
Add folder objects to render array.
Parameters
\Dkd\PhpCmis\Data\FolderInterface $folder: A CMIS folder object.
1 call to CmisBrowser::printFolderContent()
- CmisBrowser::browse in src/
CmisBrowser.php - Browse.
File
- src/
CmisBrowser.php, line 360
Class
- CmisBrowser
- Description of CmisBrowser.
Namespace
Drupal\cmisCode
protected function printFolderContent(FolderInterface $folder) {
$root = $this->connection
->getRootFolder();
$element = new CmisElement($this->config, $this->popup, $this->current, '', $root
->getId(), $this->additionalSettings);
$node = \Drupal::routeMatch()
->getParameter('node');
$type = 'browser';
if ($node instanceof NodeInterface) {
$type = 'node';
}
foreach ($folder
->getChildren() as $children) {
$element
->setElement($type, $children);
$this->data[] = $element
->getData();
}
}