function QuickEditImageController::__construct

Same name in this branch
  1. 9 core/modules/image/src/Controller/QuickEditImageController.php \Drupal\image\Controller\QuickEditImageController::__construct()
Same name in other branches
  1. 8.9.x 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/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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.