You are here

public function QuickEditImageController::__construct in Drupal 10

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/quickedit/src/Controller/QuickEditImageController.php, line 74

Class

QuickEditImageController
Returns responses for our image routes.

Namespace

Drupal\quickedit\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;
}