diff options
Diffstat (limited to 'core/includes')
-rw-r--r-- | core/includes/common.inc | 4 | ||||
-rw-r--r-- | core/includes/theme.maintenance.inc | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/core/includes/common.inc b/core/includes/common.inc index caf7d72f4d14..47f360caffe9 100644 --- a/core/includes/common.inc +++ b/core/includes/common.inc @@ -488,7 +488,7 @@ function drupal_flush_all_caches($kernel = NULL): void { * @see hook_updater_info_alter() */ function drupal_get_updaters() { - @trigger_error(__METHOD__ . '() is deprecated in drupal:11.2.0 and is removed from drupal:12.0.0. There is no replacement. Use composer to manage the code for your site. See https://www.drupal.org/node/3512364', E_USER_DEPRECATED); + @trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.2.0 and is removed from drupal:12.0.0. There is no replacement. Use composer to manage the code for your site. See https://www.drupal.org/node/3512364', E_USER_DEPRECATED); $updaters = &drupal_static(__FUNCTION__); if (!isset($updaters)) { @@ -510,7 +510,7 @@ function drupal_get_updaters() { * @see hook_filetransfer_info_alter() */ function drupal_get_filetransfer_info() { - @trigger_error(__METHOD__ . '() is deprecated in drupal:11.2.0 and is removed from drupal:12.0.0. There is no replacement. Use composer to manage the code for your site. See https://www.drupal.org/node/3512364', E_USER_DEPRECATED); + @trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.2.0 and is removed from drupal:12.0.0. There is no replacement. Use composer to manage the code for your site. See https://www.drupal.org/node/3512364', E_USER_DEPRECATED); $info = &drupal_static(__FUNCTION__); if (!isset($info)) { diff --git a/core/includes/theme.maintenance.inc b/core/includes/theme.maintenance.inc index 2a37fbc9ffdc..4438d058499b 100644 --- a/core/includes/theme.maintenance.inc +++ b/core/includes/theme.maintenance.inc @@ -108,8 +108,14 @@ function _drupal_maintenance_theme(): void { * @param array $variables * An associative array containing: * - messages: An array of result messages. + * + * @deprecated in drupal:11.2.0 and is removed from drupal:12.0.0. There is no + * replacement. Use composer to manage the code for your site. + * + * @see https://www.drupal.org/node/3522119 */ function template_preprocess_authorize_report(&$variables): void { + @trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.2.0 and is removed from drupal:12.0.0. There is no replacement. Use composer to manage the code for your site. See https://www.drupal.org/node/3522119', E_USER_DEPRECATED); $messages = []; if (!empty($variables['messages'])) { foreach ($variables['messages'] as $heading => $logs) { |