Skip to content
Snippets Groups Projects
Commit a30ab954 authored by git's avatar git Committed by Marc van Gend
Browse files

Issue #3140536 by Project Update Bot, ravimane23, marcvangend: Automated Drupal Rector fixes

parent 6c22c34e
No related branches found
Tags 8.x-2.0-alpha5
No related merge requests found
......@@ -2,6 +2,7 @@ name: Field as Block
description: 'Display fields of the current entity as blocks.'
type: module
core: 8.x
core_version_requirement: ^8 || ^9
dependencies:
- drupal:block
configure: fieldblock.field_block_config_form
......@@ -176,7 +176,7 @@ class FieldBlockConfigForm extends ConfigFormBase {
// Find and delete the remaining blocks for this entity type.
$this->storage->deleteBlocksForEntityType($entity_type);
$clear_cache = TRUE;
drupal_set_message($this->t('Remaining field blocks for the %type entity have been deleted.', ['%type' => $entity_type]));
$this->messenger()->addStatus($this->t('Remaining field blocks for the %type entity have been deleted.', ['%type' => $entity_type]));
}
else {
if (in_array($entity_type, $this->getAllEntityTypes())) {
......
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