protected function ServletConfig::addTrailingSlash in N1ED - Visual editor as CKEditor plugin with Bootstrap support 8.2
Adds a trainling slash for path.
1 call to ServletConfig::addTrailingSlash()
- ServletConfig::getParameter in src/
Flmngr/ FileUploaderServer/ servlet/ ServletConfig.php - Gets a parameter from config.
File
- src/
Flmngr/ FileUploaderServer/ servlet/ ServletConfig.php, line 44
Class
- ServletConfig
- Implementation of ConfigInterface interface. Returnes values with validationing them.
Namespace
Drupal\n1ed\Flmngr\FileUploaderServer\servletCode
protected function addTrailingSlash($value, $doAddTrailingSlash) {
if ($value != NULL && $doAddTrailingSlash && (strlen($value) == 0 || !substr($value, strlen($value) - 1) == DIRECTORY_SEPARATOR)) {
$value .= DIRECTORY_SEPARATOR;
}
return $value;
}