From be64557b884ec2c730732aa15d3c0784f8f23da3 Mon Sep 17 00:00:00 2001 From: quietone Date: Sun, 17 Nov 2024 17:37:29 +1300 Subject: Issue #3483299 by tstoeckler, mstrelan, nicxvan: Add void return type to all preprocess hook implementations --- core/modules/file/file.module | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'core/modules/file/file.module') 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']; -- cgit v1.2.3