Skip to content
Snippets Groups Projects

Move callback classRemove outside of the loop

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
  • ce49ed33
    Issue #3205344 by alexpott: Calling system_requirements() can be expensive -... · ce49ed33
    catch authored
    Issue #3205344 by alexpott: Calling system_requirements() can be expensive - do the cheap check first
@@ -118,7 +118,7 @@ public static function create(ContainerInterface $container) {
*/
public function overview($link_id) {
// Check for status report errors.
if ($this->systemManager->checkRequirements() && $this->currentUser()->hasPermission('administer site configuration')) {
if ($this->currentUser()->hasPermission('administer site configuration') && $this->systemManager->checkRequirements()) {
$this->messenger()->addError($this->t('One or more problems were detected with your Drupal installation. Check the <a href=":status">status report</a> for more information.', [':status' => Url::fromRoute('system.status')->toString()]));
}
// Load all menu links below it.
Loading