You are here

protected function CmisBrowser::printFolderContent in CMIS API 3.0.x

Same name and namespace in other branches
  1. 8.2 src/CmisBrowser.php \Drupal\cmis\CmisBrowser::printFolderContent()
  2. 8 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\cmis

Code

protected function printFolderContent(FolderInterface $folder) {
  $root = $this->connection
    ->getRootFolder();
  $element = new CmisElement($this->config, $this->popup, $this->current, '', $root
    ->getId(), $this->additionalSettings);
  foreach ($folder
    ->getChildren() as $children) {
    $element
      ->setElement('browser', $children);
    $this->data[] = $element
      ->getData();
  }
}