You are here

public function QuickEditController::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/quickedit/src/QuickEditController.php \Drupal\quickedit\QuickEditController::__construct()

Constructs a new QuickEditController.

Parameters

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

\Drupal\quickedit\MetadataGeneratorInterface $metadata_generator: The in-place editing metadata generator.

\Drupal\quickedit\EditorSelectorInterface $editor_selector: The in-place editor selector.

\Drupal\Core\Render\RendererInterface $renderer: The renderer.

\Drupal\Core\Entity\EntityDisplayRepositoryInterface $entity_display_repository: The entity display repository service.

\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository.

File

core/modules/quickedit/src/QuickEditController.php, line 85

Class

QuickEditController
Returns responses for Quick Edit module routes.

Namespace

Drupal\quickedit

Code

public function __construct(PrivateTempStoreFactory $temp_store_factory, MetadataGeneratorInterface $metadata_generator, EditorSelectorInterface $editor_selector, RendererInterface $renderer, EntityDisplayRepositoryInterface $entity_display_repository, EntityRepositoryInterface $entity_repository) {
  $this->tempStoreFactory = $temp_store_factory;
  $this->metadataGenerator = $metadata_generator;
  $this->editorSelector = $editor_selector;
  $this->renderer = $renderer;
  $this->entityDisplayRepository = $entity_display_repository;
  $this->entityRepository = $entity_repository;
}