public function CmisBrowser::ajaxCall in CMIS API 3.0.x
Same name and namespace in other branches
- 8.2 src/CmisBrowser.php \Drupal\cmis\CmisBrowser::ajaxCall()
- 8 src/CmisBrowser.php \Drupal\cmis\CmisBrowser::ajaxCall()
Call from ajaxify url.
Parameters
string $config: Entity label.
string $folder_id: CMIS folder id.
1 string reference to 'CmisBrowser::ajaxCall'
File
- src/
CmisBrowser.php, line 113
Class
- CmisBrowser
- Description of CmisBrowser.
Namespace
Drupal\cmisCode
public function ajaxCall($config = '', $folder_id = '') {
\Drupal::service('cmis.connection_api')
->checkConnectionIsAlive($config, TRUE);
$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;
}
}