@@ -217,7 +217,11 @@ public function rebuild(): void {
// Disable blocks in invalid regions.
if(!isset($regions[$block->getRegion()])){
if($block->status()){
\Drupal::messenger()->addWarning($this->t('The block %info was assigned to the invalid region %region and has been disabled.',['%info'=>$block_id,'%region'=>$block->getRegion()]));
\Drupal::messenger()
->addWarning($this->t('The block %info was assigned to the invalid region %region and has been disabled.',[
$output.='<p>'.$this->t('The Block Content module manages the creation, editing, and deletion of content blocks. Content blocks are field-able content entities managed by the <a href=":field">Field module</a>. For more information, see the <a href=":block-content">online documentation for the Block Content module</a>.',[':block-content'=>'https://www.drupal.org/documentation/modules/block_content',':field'=>Url::fromRoute('help.page',['name'=>'field'])->toString()]).'</p>';
$output.='<p>'.$this->t('The Block Content module manages the creation, editing, and deletion of content blocks. Content blocks are field-able content entities managed by the <a href=":field">Field module</a>. For more information, see the <a href=":block-content">online documentation for the Block Content module</a>.',[