Skip to content

Commit

Permalink
update settings form for D11 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
jackrabbithanna committed May 20, 2024
1 parent 5412b32 commit da670b2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Form/CivicrmEntitySettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use Drupal\civicrm_entity\SupportedEntities;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Config\TypedConfigManagerInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Form\ConfigFormBase;
use Drupal\Core\Form\FormStateInterface;
Expand Down Expand Up @@ -67,6 +68,8 @@ class CivicrmEntitySettings extends ConfigFormBase {
*
* @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
* The factory for configuration objects.
* @param \Drupal\Core\Config\TypedConfigManagerInterface $typedConfigManager
* The typed config manager.
* @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager
* The entity type manager.
* @param \Drupal\Core\Routing\RouteBuilderInterface $route_builder
Expand All @@ -80,8 +83,8 @@ class CivicrmEntitySettings extends ConfigFormBase {
* @param \Drupal\Core\Cache\CacheBackendInterface $cache_render
* The render cache manager.
*/
public function __construct(ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager, RouteBuilderInterface $route_builder, LocalActionManager $local_action_manager, LocalTaskManager $local_task_manager, MenuLinkManagerInterface $menu_link_manager, CacheBackendInterface $cache_render) {
parent::__construct($config_factory);
public function __construct(ConfigFactoryInterface $config_factory, TypedConfigManagerInterface $typedConfigManager, EntityTypeManagerInterface $entity_type_manager, RouteBuilderInterface $route_builder, LocalActionManager $local_action_manager, LocalTaskManager $local_task_manager, MenuLinkManagerInterface $menu_link_manager, CacheBackendInterface $cache_render) {
parent::__construct($config_factory, $typedConfigManager);
$this->entityTypeManager = $entity_type_manager;
$this->routeBuilder = $route_builder;
$this->localActionManager = $local_action_manager;
Expand All @@ -96,6 +99,7 @@ public function __construct(ConfigFactoryInterface $config_factory, EntityTypeMa
public static function create(ContainerInterface $container) {
return new static(
$container->get('config.factory'),
$container->get('config.typed'),
$container->get('entity_type.manager'),
$container->get('router.builder'),
$container->get('plugin.manager.menu.local_action'),
Expand Down

0 comments on commit da670b2

Please sign in to comment.