summaryrefslogtreecommitdiffstatshomepage
path: root/core/modules/system/system.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/system/system.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/system/system.module')
-rw-r--r--core/modules/system/system.module6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/modules/system/system.module b/core/modules/system/system.module
index af698a011cc6..ab288658449b 100644
--- a/core/modules/system/system.module
+++ b/core/modules/system/system.module
@@ -261,7 +261,7 @@ function system_theme_suggestions_field(array $variables) {
* - add_bundle_message: The message shown when there are no bundles. Only
* available if the entity type uses bundle entities.
*/
-function template_preprocess_entity_add_list(&$variables) {
+function template_preprocess_entity_add_list(&$variables): void {
foreach ($variables['bundles'] as $bundle_name => $bundle_info) {
$variables['bundles'][$bundle_name]['description'] = [
'#markup' => $bundle_info['description'],
@@ -515,7 +515,7 @@ function _system_page_attachments(array &$page) {
/**
* Implements hook_preprocess_HOOK() for block templates.
*/
-function system_preprocess_block(&$variables) {
+function system_preprocess_block(&$variables): void {
switch ($variables['base_plugin_id']) {
case 'system_branding_block':
$variables['site_logo'] = '';
@@ -683,7 +683,7 @@ function _system_is_claro_admin_and_not_active() {
/**
* Implements hook_preprocess_toolbar().
*/
-function system_preprocess_toolbar(array &$variables, $hook, $info) {
+function system_preprocess_toolbar(array &$variables, $hook, $info): void {
// When Claro is the admin theme, Claro overrides the active theme's if that
// active theme is not Claro. Because of these potential overrides, the
// toolbar cache should be invalidated any time the default or admin theme