public function ServletConfig::getAllowedExtensions in N1ED - Visual editor as CKEditor plugin with Bootstrap support 8.2
Gets allowed extensions array.
Overrides ConfigInterface::getAllowedExtensions
File
- src/
Flmngr/ FileUploaderServer/ servlet/ ServletConfig.php, line 125
Class
- ServletConfig
- Implementation of ConfigInterface interface. Returnes values with validationing them.
Namespace
Drupal\n1ed\Flmngr\FileUploaderServer\servletCode
public function getAllowedExtensions() {
$value = $this
->getParameterStr("allowedExtensions", NULL);
if ($value === NULL) {
return [];
}
$exts = explode(",", $value);
for ($i = 0; $i < count($exts); $i++) {
$exts[$i] = strtolower($exts[$i]);
}
return $exts;
}