Skip to content
Snippets Groups Projects
Commit f2630dc6 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2062091 by m1r1k: Remove references to global in Block module.

parent e8e45c80
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -288,7 +288,7 @@ function _block_get_renderable_region($list = array()) {
// to other users. We therefore exclude user 1 from block caching.
$not_cacheable = Drupal::currentUser()->id() == 1 ||
count(Drupal::moduleHandler()->getImplementations('node_grants')) ||
!\Drupal::request()->isMethodSafe();
!Drupal::request()->isMethodSafe();
foreach ($list as $key => $block) {
$settings = $block->get('settings');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment