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\Extension\ModuleHandlerInterface; use Drupal\Core\Form\ConfigFormBase; use Symfony\Component\DependencyInjection\ContainerInterface; /** * Configure order settings for this site. * * @internal */ class OrderSettingsForm extends ConfigFormBase { /** * The module handler. * * @var \Drupal\Core\Extension\ModuleHandlerInterface */ protected $moduleHandler; /** * Constructs a \Drupal\arch_order\Form\OrderSettingsForm object. * * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory * The factory for configuration objects. * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler * The module handler. */ public function __construct(ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler) { parent::__construct($config_factory); $this->moduleHandler = $module_handler; } /** * {@inheritdoc} */ public static function create(ContainerInterface $container) { return new static( $container->get('config.factory'), $container->get('module_handler') ); } /** * {@inheritdoc} */ public function getFormId() { return 'order_admin_settings'; } /** * {@inheritdoc} */ protected function getEditableConfigNames() { return [ 'system.site', 'order.settings', ]; } }