Issue #2451607 by aneek: Remove call to SafeMarkup::set() from node_requirements()

8.0.x
Alex Pott 2015-03-22 14:29:48 +00:00
parent d87af02686
commit 9c449689f4
1 changed files with 3 additions and 4 deletions

View File

@ -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. <a href="@rebuild">Rebuild permissions</a>', array(
'@rebuild' => \Drupal::url('node.configure_rebuild_confirm'),
)),
);
}
return $requirements;