Skip to content
Snippets Groups Projects
Commit 67dabf67 authored by Rajan  Kumar's avatar Rajan Kumar Committed by Chris Matthews
Browse files

Issue #3454906 by rajan kumar@2026, naveenvalecha, bharath-kondeti,...

Issue #3454906 by rajan kumar@2026, naveenvalecha, bharath-kondeti, samit.310@gmail.com, frederikvho, chris matthews: Drupal 11 compatibility fixes for sendgrid_integration
parent 1944e756
Branches
Tags
1 merge request!32Issue #3454906 by naveenvalecha, Drupal 11 compatibility fixes
name: 'SendGrid Integration Reports'
description: 'SendGrid Integration Reports Module'
type: module
core_version_requirement: ^9 || ^10
core_version_requirement: ^10 || ^11
package: 'Mail'
configure: sendgrid_integration_reports.settings_form
dependencies:
......
name: 'SendGrid Integration'
description: 'Provides Sendgrid Integration for the Drupal Mail System'
type: module
core_version_requirement: ^9 || ^10
core_version_requirement: ^10 || ^11
package: 'Mail'
configure: sendgrid_integration.settings_form
dependencies:
......
......@@ -3,6 +3,7 @@
namespace Drupal\sendgrid_integration\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;
......@@ -27,11 +28,13 @@ class SendGridSettingsForm 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\Extension\ModuleHandlerInterface $moduleHandler
* The module handler service.
*/
public function __construct(ConfigFactoryInterface $config_factory, ModuleHandlerInterface $moduleHandler) {
parent::__construct($config_factory);
public function __construct(ConfigFactoryInterface $config_factory, TypedConfigManagerInterface $typedConfigManager, ModuleHandlerInterface $moduleHandler) {
parent::__construct($config_factory, $typedConfigManager);
$this->moduleHandler = $moduleHandler;
}
......@@ -41,6 +44,7 @@ class SendGridSettingsForm extends ConfigFormBase {
public static function create(ContainerInterface $container) {
return new static(
$container->get('config.factory'),
$container->get('config.typed'),
$container->get('module_handler')
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment