You are here

public function CmisConnectionApi::setDefaultParameters in CMIS API 3.0.x

Same name and namespace in other branches
  1. 8.2 src/CmisConnectionApi.php \Drupal\cmis\CmisConnectionApi::setDefaultParameters()
  2. 8 src/CmisConnectionApi.php \Drupal\cmis\CmisConnectionApi::setDefaultParameters()

Set default parameters.

File

src/CmisConnectionApi.php, line 148

Class

CmisConnectionApi
Description of CmisConnectionApi.

Namespace

Drupal\cmis

Code

public function setDefaultParameters() {
  $parameters = [
    SessionParameter::BINDING_TYPE => BindingType::BROWSER,
    SessionParameter::BROWSER_URL => $this
      ->getConfig()
      ->getCmisUrl(),
    SessionParameter::BROWSER_SUCCINCT => FALSE,
    SessionParameter::HTTP_INVOKER_OBJECT => $this
      ->getHttpInvoker(),
  ];
  $this
    ->setParameters($parameters);
}