You are here

public function QuickEditFieldForm::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/quickedit/src/Form/QuickEditFieldForm.php \Drupal\quickedit\Form\QuickEditFieldForm::__construct()
  2. 10 core/modules/quickedit/src/Form/QuickEditFieldForm.php \Drupal\quickedit\Form\QuickEditFieldForm::__construct()

Constructs a new EditFieldForm.

Parameters

\Drupal\Core\TempStore\PrivateTempStoreFactory $temp_store_factory: The tempstore factory.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Drupal\Core\Entity\EntityStorageInterface $node_type_storage: The node type storage.

File

core/modules/quickedit/src/Form/QuickEditFieldForm.php, line 54

Class

QuickEditFieldForm
Builds and process a form for editing a single entity field.

Namespace

Drupal\quickedit\Form

Code

public function __construct(PrivateTempStoreFactory $temp_store_factory, ModuleHandlerInterface $module_handler, EntityStorageInterface $node_type_storage) {
  $this->moduleHandler = $module_handler;
  $this->nodeTypeStorage = $node_type_storage;
  $this->tempStoreFactory = $temp_store_factory;
}