public function CmisBrowser::browse in CMIS API 8.2
Same name and namespace in other branches
- 8 src/CmisBrowser.php \Drupal\cmis\CmisBrowser::browse()
- 3.0.x src/CmisBrowser.php \Drupal\cmis\CmisBrowser::browse()
Browse.
Return value
array Return cmis browser render array.
1 call to CmisBrowser::browse()
- CmisBrowser::ajaxCall in src/
CmisBrowser.php - Call from ajaxify url.
File
- src/
CmisBrowser.php, line 251
Class
- CmisBrowser
- Description of CmisBrowser.
Namespace
Drupal\cmisCode
public function browse($reset = FALSE) {
if ($this->connection && !empty($this->current)) {
$this
->setBreadcrumbs($this->current);
$this
->printFolderContent($this->current);
$table_header = [
$this
->t('Name'),
$this
->t('Details'),
$this
->t('Author'),
$this
->t('Created'),
$this
->t('Description'),
$this
->t('Operation'),
];
$browse = [
'#theme' => 'cmis_browser',
'#header' => $table_header,
'#elements' => $this->data,
'#breadcrumbs' => $this->breadcrumbs,
'#operations' => $this
->prepareOperations(),
'#attached' => [
'library' => [
'cmis/cmis-browser',
],
],
];
return $browse;
}
return [];
}