Skip to content
Snippets Groups Projects

update PermissionBlacklistForm to pass TypedConfigManager and fix missing...

Merged Tara requested to merge fix-configformbase-dep into 4.x
2 files
+ 18
7
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -3,6 +3,7 @@
namespace Drupal\module_permissions_ui\Form;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Config\TypedConfigManagerInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Form\ConfigFormBase;
use Drupal\Core\Form\FormStateInterface;
@@ -48,8 +49,8 @@ class PermissionBlacklistForm extends ConfigFormBase {
* @param \Drupal\user\PermissionHandlerInterface $permission_handler
* Permission handler.
*/
public function __construct(ConfigFactoryInterface $config_factory, Helper $helper, ModuleHandlerInterface $module_handler, PermissionHandlerInterface $permission_handler) {
parent::__construct($config_factory);
public function __construct(ConfigFactoryInterface $config_factory, TypedConfigManagerInterface $typed_config_manager, Helper $helper, ModuleHandlerInterface $module_handler, PermissionHandlerInterface $permission_handler) {
parent::__construct($config_factory, $typed_config_manager);
$this->helper = $helper;
$this->moduleHandler = $module_handler;
$this->permissionHandler = $permission_handler;
@@ -61,6 +62,7 @@ class PermissionBlacklistForm extends ConfigFormBase {
public static function create(ContainerInterface $container) {
return new static(
$container->get('config.factory'),
$container->get('config.typed'),
$container->get('module_permissions.helper'),
$container->get('module_handler'),
$container->get('user.permissions')
Loading