Commit 54d88d57 authored by Phéna Proxima's avatar Phéna Proxima Committed by Primsi
Browse files

Fixed doc comment.

parent 7d4fa9d0
......@@ -51,8 +51,8 @@ class UploadHandler implements UploadHandlerInterface {
/**
* Constructs dropzone upload controller route controller.
*
* @param \Symfony\Component\HttpFoundation\Request $request
* Request object.
* @param \Symfony\Component\HttpFoundation\RequestStack $request_stack
* The request stack.
* @param \Drupal\Core\Config\ConfigFactoryInterface $config
* Config factory.
* @param \Drupal\Core\Transliteration\PhpTransliteration $transliteration
......@@ -61,7 +61,7 @@ class UploadHandler implements UploadHandlerInterface {
public function __construct(RequestStack $request_stack, ConfigFactoryInterface $config, TransliterationInterface $transliteration) {
$this->request = $request_stack->getCurrentRequest();
$tmp_override = $config->get('dropzonejs.settings')->get('tmp_dir');
$this->temporaryUploadLocation = ($tmp_override) ? $tmp_override : $config->get('system.file')->get('path.temporary');
$this->temporaryUploadLocation = $tmp_override ?: $config->get('system.file')->get('path.temporary');
$this->transliteration = $transliteration;
}
......@@ -161,4 +161,5 @@ class UploadHandler implements UploadHandlerInterface {
return $tmp;
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment