Commit 22f56009 authored by John Erhardt's avatar John Erhardt Committed by renatog
Browse files

Issue #3099854 by johne, RenatoG: class properties not defined

parent 19128b5f
Loading
Loading
Loading
Loading
+16 −2
Original line number Diff line number Diff line
@@ -27,6 +27,20 @@ class InviteTypeForm extends EntityForm {
   */
  public $pluginManager;

  /**
   * Block Manager.
   *
   * @var \Drupal\core\Block\BlockManager
   */
  public $blockManager;

  /**
   * Database.
   *
   * @var \Drupal\core\Database\connection
   */
  protected $database;

  /**
   * The Messenger service.
   *
@@ -52,7 +66,7 @@ class InviteTypeForm extends EntityForm {
  public function __construct(InvitePluginManager $plugin_manager, BlockManager $block_plugin_manager, Connection $database, MessengerInterface $messenger) {
    $this->pluginManager = $plugin_manager;
    $this->database = $database;
    $this->block_manager = $block_plugin_manager;
    $this->blockManager = $block_plugin_manager;
    $this->messenger = $messenger;
  }

@@ -226,7 +240,7 @@ class InviteTypeForm extends EntityForm {
        ]));
    }
    // Reload blocks.
    $this->block_manager->clearCachedDefinitions();
    $this->blockManager->clearCachedDefinitions();

    $form_state->setRedirect('entity.invite_type.collection', ['invite_type' => $entity->id()]);
  }