From 9c449689f425a10cbd33cedaa5243d873218b3ac Mon Sep 17 00:00:00 2001 From: Alex Pott Date: Sun, 22 Mar 2015 14:29:48 +0000 Subject: [PATCH] Issue #2451607 by aneek: Remove call to SafeMarkup::set() from node_requirements() --- core/modules/node/node.install | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/core/modules/node/node.install b/core/modules/node/node.install index 034da3b23aa..fa0d245c363 100644 --- a/core/modules/node/node.install +++ b/core/modules/node/node.install @@ -26,14 +26,13 @@ function node_requirements($phase) { else { $value = t('Disabled'); } - $description = t('If the site is experiencing problems with permissions to content, you may have to rebuild the permissions cache. Rebuilding will remove all privileges to content and replace them with permissions based on the current modules and settings. Rebuilding may take some time if there is a lot of content or complex permission settings. After rebuilding has completed, content will automatically use the new permissions.'); $requirements['node_access'] = array( 'title' => t('Node Access Permissions'), 'value' => $value, - // The result of t() is safe and so is the result of l(). Preserving - // safe object. - 'description' => SafeMarkup::set($description . ' ' . \Drupal::l(t('Rebuild permissions'), new Url('node.configure_rebuild_confirm'))), + 'description' => t('If the site is experiencing problems with permissions to content, you may have to rebuild the permissions cache. Rebuilding will remove all privileges to content and replace them with permissions based on the current modules and settings. Rebuilding may take some time if there is a lot of content or complex permission settings. After rebuilding has completed, content will automatically use the new permissions. Rebuild permissions', array( + '@rebuild' => \Drupal::url('node.configure_rebuild_confirm'), + )), ); } return $requirements;