Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / block / src / Controller / BlockController.php
index 7398ff98e125c4779086e8d63f87015b0c774b8d..543ce59038f80cda50814d0d5ba16b5a299cf3a6 100644 (file)
@@ -53,7 +53,7 @@ class BlockController extends ControllerBase {
    */
   public function performOperation(BlockInterface $block, $op) {
     $block->$op()->save();
-    drupal_set_message($this->t('The block settings have been updated.'));
+    $this->messenger()->addStatus($this->t('The block settings have been updated.'));
     return $this->redirect('block.admin_display');
   }