summaryrefslogtreecommitdiffstatshomepage
path: root/core/modules/file/file.module
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/file/file.module')
-rw-r--r--core/modules/file/file.module8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/modules/file/file.module b/core/modules/file/file.module
index 9ade447d83eb..724be28393c5 100644
--- a/core/modules/file/file.module
+++ b/core/modules/file/file.module
@@ -402,7 +402,7 @@ function file_managed_file_save_upload($element, FormStateInterface $form_state)
* An associative array containing:
* - element: A render element representing the file.
*/
-function template_preprocess_file_managed_file(&$variables) {
+function template_preprocess_file_managed_file(&$variables): void {
$element = $variables['element'];
$variables['attributes'] = [];
@@ -427,7 +427,7 @@ function template_preprocess_file_managed_file(&$variables) {
* - description: A description to be displayed instead of the filename.
* - attributes: An associative array of attributes to be placed in the a tag.
*/
-function template_preprocess_file_link(&$variables) {
+function template_preprocess_file_link(&$variables): void {
$file = $variables['file'];
$options = [];
@@ -473,7 +473,7 @@ function template_preprocess_file_link(&$variables) {
* An associative array containing:
* - element: A render element representing the widgets.
*/
-function template_preprocess_file_widget_multiple(&$variables) {
+function template_preprocess_file_widget_multiple(&$variables): void {
$element = $variables['element'];
// Special ID and classes for draggable tables.
$weight_class = $element['#id'] . '-weight';
@@ -589,7 +589,7 @@ function template_preprocess_file_widget_multiple(&$variables) {
* - upload_validators: An array of upload validators as used in
* $element['#upload_validators'].
*/
-function template_preprocess_file_upload_help(&$variables) {
+function template_preprocess_file_upload_help(&$variables): void {
$description = $variables['description'];
$upload_validators = $variables['upload_validators'];
$cardinality = $variables['cardinality'];