public function CmisBrowser::ajaxCall in CMIS API 8
Same name and namespace in other branches
- 8.2 src/CmisBrowser.php \Drupal\cmis\CmisBrowser::ajaxCall()
- 3.0.x src/CmisBrowser.php \Drupal\cmis\CmisBrowser::ajaxCall()
Call from ajaxify url.
Parameters
string $config:
string $folder_id:
1 string reference to 'CmisBrowser::ajaxCall'
File
- src/
CmisBrowser.php, line 100
Class
- CmisBrowser
- Description of CmisBrowser
Namespace
Drupal\cmisCode
public function ajaxCall($config, $folder_id) {
$this
->init($config, $folder_id);
if ($this->connection && !empty($this->current) && ($browse = $this
->browse())) {
$response = new AjaxResponse();
$content = render($browse);
$response
->addCommand(new HtmlCommand('#cmis-browser-wrapper', $content));
return $response;
}
}