arch-8.x-1.x-dev/modules/order/src/Form/OrderSettingsForm.php
modules/order/src/Form/OrderSettingsForm.php
<?php
namespace Drupal\arch_order\Form;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Config\TypedConfigManagerInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Form\ConfigFormBase;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
* Configure order settings for this site.
*
* @internal
*/
class OrderSettingsForm extends ConfigFormBase {
public function __construct(
ConfigFactoryInterface $config_factory,
protected ModuleHandlerInterface $moduleHandler,
protected TypedConfigManagerInterface $typedConfigManager,
) {
parent::__construct(
$config_factory,
$typedConfigManager,
);
}
/**
* {@inheritdoc}
*/
public static function create(ContainerInterface $container) {
return new static(
$container->get('config.factory'),
$container->get('module_handler'),
$container->get('config.typed'),
);
}
/**
* {@inheritdoc}
*/
public function getFormId() {
return 'order_admin_settings';
}
/**
* {@inheritdoc}
*/
protected function getEditableConfigNames() {
return [
'system.site',
'order.settings',
];
}
}
