You are here

protected function ServletConfig::getParameter in N1ED - Visual editor as CKEditor plugin with Bootstrap support 8.2

Gets a parameter from config.

5 calls to ServletConfig::getParameter()
ServletConfig::getBaseDir in src/Flmngr/FileUploaderServer/servlet/ServletConfig.php
Gets a path to base directory.
ServletConfig::getParameterBool in src/Flmngr/FileUploaderServer/servlet/ServletConfig.php
Gets boolean parameter.
ServletConfig::getParameterInt in src/Flmngr/FileUploaderServer/servlet/ServletConfig.php
Gets integer parameter.
ServletConfig::getParameterStr in src/Flmngr/FileUploaderServer/servlet/ServletConfig.php
Gets string parameter.
ServletConfig::getTmpDir in src/Flmngr/FileUploaderServer/servlet/ServletConfig.php
Gets a path to temporary directory.

File

src/Flmngr/FileUploaderServer/servlet/ServletConfig.php, line 29

Class

ServletConfig
Implementation of ConfigInterface interface. Returnes values with validationing them.

Namespace

Drupal\n1ed\Flmngr\FileUploaderServer\servlet

Code

protected function getParameter($name, $defaultValue, $doAddTrailingSlash) {
  if (array_key_exists($name, $this->testConf)) {
    return $this
      ->addTrailingSlash($this->testConf[$name], $doAddTrailingSlash);
  }
  else {
    if (array_key_exists($name, $this->conf)) {
      return $this
        ->addTrailingSlash($this->conf[$name], $doAddTrailingSlash);
    }
    return $defaultValue;
  }
}