summaryrefslogtreecommitdiffstatshomepage
path: root/core/modules/file/file.module
diff options
context:
space:
mode:
authorquietone <quietone@2572884.no-reply.drupal.org>2024-11-17 17:37:29 +1300
committerquietone <quietone@2572884.no-reply.drupal.org>2024-11-17 17:37:29 +1300
commitbe64557b884ec2c730732aa15d3c0784f8f23da3 (patch)
treef82c59d776a44dd439ab305b563fb07a4f45d793 /core/modules/file/file.module
parentf8e5acb7643f787cf58dee689c76d13e29c8aa43 (diff)
downloaddrupal-be64557b884ec2c730732aa15d3c0784f8f23da3.tar.gz
drupal-be64557b884ec2c730732aa15d3c0784f8f23da3.zip
Issue #3483299 by tstoeckler, mstrelan, nicxvan: Add void return type to all preprocess hook implementations
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 9ade447d83e..724be28393c 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'];