Skip to content
Snippets Groups Projects

Draft: Resolve #3415856 "Enable drupal ci"

Files
10
+ 4
14
@@ -2,7 +2,6 @@
@@ -2,7 +2,6 @@
namespace Drupal\component_connector\Form;
namespace Drupal\component_connector\Form;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Extension\ThemeHandlerInterface;
use Drupal\Core\Extension\ThemeHandlerInterface;
use Drupal\Core\Form\ConfigFormBase;
use Drupal\Core\Form\ConfigFormBase;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Form\FormStateInterface;
@@ -18,24 +17,15 @@ class SettingsForm extends ConfigFormBase {
@@ -18,24 +17,15 @@ class SettingsForm extends ConfigFormBase {
*
*
* @var \Drupal\Core\Extension\ThemeHandlerInterface
* @var \Drupal\Core\Extension\ThemeHandlerInterface
*/
*/
protected $themeHandler;
protected ThemeHandlerInterface $themeHandler;
/**
* {@inheritdoc}
*/
public function __construct(ConfigFactoryInterface $config_factory, ThemeHandlerInterface $theme_handler) {
parent::__construct($config_factory);
$this->themeHandler = $theme_handler;
}
/**
/**
* {@inheritdoc}
* {@inheritdoc}
*/
*/
public static function create(ContainerInterface $container) {
public static function create(ContainerInterface $container) {
return new static(
$instance = parent::create($container);
$container->get('config.factory'),
$instance->themeHandler = $container->get('theme_handler');
$container->get('theme_handler')
return $instance;
);
}
}
/**
/**
Loading