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
No related tags found
No related merge requests found
...@@ -2,6 +2,7 @@ name: Field as Block ...@@ -2,6 +2,7 @@ name: Field as Block
description: 'Display fields of the current entity as blocks.' description: 'Display fields of the current entity as blocks.'
type: module type: module
core: 8.x core: 8.x
core_version_requirement: ^8 || ^9
dependencies: dependencies:
- drupal:block - drupal:block
configure: fieldblock.field_block_config_form configure: fieldblock.field_block_config_form
...@@ -176,7 +176,7 @@ class FieldBlockConfigForm extends ConfigFormBase { ...@@ -176,7 +176,7 @@ class FieldBlockConfigForm extends ConfigFormBase {
// Find and delete the remaining blocks for this entity type. // Find and delete the remaining blocks for this entity type.
$this->storage->deleteBlocksForEntityType($entity_type); $this->storage->deleteBlocksForEntityType($entity_type);
$clear_cache = TRUE; $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 { else {
if (in_array($entity_type, $this->getAllEntityTypes())) { 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