You are here

public function KeyConfigOverrideAddForm::__construct in Key 8

Constructs a KeyConfigOverrideAddForm.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity manager.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

\Drupal\Core\Config\StorageInterface $config_storage: The config storage.

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The current request stack.

File

src/Form/KeyConfigOverrideAddForm.php, line 75

Class

KeyConfigOverrideAddForm
KeyConfigOverrideAddForm class.

Namespace

Drupal\key\Form

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, ConfigFactoryInterface $config_factory, StorageInterface $config_storage, RequestStack $request_stack) {
  $this->entityTypeManager = $entity_type_manager;
  $this->configFactory = $config_factory;
  $this->configStorage = $config_storage;
  $this->storage = $entity_type_manager
    ->getStorage('key_config_override');
  $this->requestStack = $request_stack;
}