Loading src/Form/InviteTypeForm.php +16 −2 Original line number Diff line number Diff line Loading @@ -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. * Loading @@ -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; } Loading Loading @@ -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()]); } Loading Loading
src/Form/InviteTypeForm.php +16 −2 Original line number Diff line number Diff line Loading @@ -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. * Loading @@ -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; } Loading Loading @@ -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()]); } Loading