You are here

public function CmisBrowser::ajaxCall in CMIS API 8

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

File

src/CmisBrowser.php, line 100

Class

CmisBrowser
Description of CmisBrowser

Namespace

Drupal\cmis

Code

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;
  }
}