You are here

public function QuickEditImageController::__construct in Drupal 9

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

Constructs a new QuickEditImageController.

Parameters

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

\Drupal\Core\Image\ImageFactory $image_factory: The image factory.

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

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

\Drupal\Core\File\FileSystemInterface $file_system: The file system.

File

core/modules/image/src/Controller/QuickEditImageController.php, line 74

Class

QuickEditImageController
Returns responses for our image routes.

Namespace

Drupal\image\Controller

Code

public function __construct(RendererInterface $renderer, ImageFactory $image_factory, PrivateTempStoreFactory $temp_store_factory, EntityDisplayRepositoryInterface $entity_display_repository, FileSystemInterface $file_system) {
  $this->renderer = $renderer;
  $this->imageFactory = $image_factory;
  $this->tempStore = $temp_store_factory
    ->get('quickedit');
  $this->entityDisplayRepository = $entity_display_repository;
  $this->fileSystem = $file_system;
}