You are here

public function CmisRepositoryController::browse in CMIS API 8

Same name and namespace in other branches
  1. 8.2 src/Controller/CmisRepositoryController.php \Drupal\cmis\Controller\CmisRepositoryController::browse()
  2. 3.0.x src/Controller/CmisRepositoryController.php \Drupal\cmis\Controller\CmisRepositoryController::browse()

Browse.

Parameters

type $config:

type $folder_name:

Return value

string Return cmis browser render array or warning.

1 string reference to 'CmisRepositoryController::browse'
cmis.routing.yml in ./cmis.routing.yml
cmis.routing.yml

File

src/Controller/CmisRepositoryController.php, line 39

Class

CmisRepositoryController
Class CmisRepositoryController.

Namespace

Drupal\cmis\Controller

Code

public function browse($config = '', $folder_id = '') {
  if (empty($this->browser)) {
    $this
      ->initBrowser($config, $folder_id);
  }
  if (!empty($this->browser
    ->getCurrent())) {
    $cacheable = $this->browser
      ->getConnection()
      ->getConfig()
      ->getCmisCacheable();
    return $this->browser
      ->browse(!$cacheable);
  }
}