Mercurial > hg > cmmr2012-drupal-site
diff core/modules/block/block.module @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:11:55 +0000 |
parents | c75dbcec494b |
children | 12f9dff5fda9 |
line wrap: on
line diff
--- a/core/modules/block/block.module Thu Feb 28 11:14:44 2019 +0000 +++ b/core/modules/block/block.module Thu Feb 28 13:11:55 2019 +0000 @@ -145,7 +145,11 @@ // Disable blocks in invalid regions. if (!isset($regions[$block->getRegion()])) { if ($block->status()) { - drupal_set_message(t('The block %info was assigned to the invalid region %region and has been disabled.', ['%info' => $block_id, '%region' => $block->getRegion()]), 'warning'); + \Drupal::messenger() + ->addWarning(t('The block %info was assigned to the invalid region %region and has been disabled.', [ + '%info' => $block_id, + '%region' => $block->getRegion(), + ])); } $block ->setRegion(system_default_region($theme))