public function CustomServicesAddForm::__construct in Shorten URLs 8.2
CustomServicesAddForm constructor.
Parameters
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
\Drupal\Core\Database\Connection $database: The database connection.
Drupal\Core\Render\RendererInterface $renderer: The renderer service.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
Overrides ConfigFormBase::__construct
File
- modules/
shorten_cs/ src/ Form/ CustomServicesAddForm.php, line 54
Class
- CustomServicesAddForm
- Settings form.
Namespace
Drupal\shorten_cs\FormCode
public function __construct(ModuleHandlerInterface $module_handler, Connection $database, RendererInterface $renderer, ConfigFactoryInterface $config_factory) {
parent::__construct($config_factory);
$this->moduleHandler = $module_handler;
$this->database = $database;
$this->renderer = $renderer;
}