public function MediaController::__construct in Gutenberg 8.2
Same name and namespace in other branches
- 8 src/Controller/MediaController.php \Drupal\gutenberg\Controller\MediaController::__construct()
MediaController constructor.
Parameters
\Drupal\gutenberg\Service\MediaService $media_service: The media service.
\Drupal\gutenberg\MediaSelectionProcessor\MediaSelectionProcessorManagerInterface $media_selection_processor_manager: The media selection processor manager.
\Drupal\Core\Render\RendererInterface $renderer: The renderer.
File
- src/
Controller/ MediaController.php, line 58
Class
- MediaController
- Returns responses for our image routes.
Namespace
Drupal\gutenberg\ControllerCode
public function __construct(MediaService $media_service, MediaSelectionProcessorManagerInterface $media_selection_processor_manager, RendererInterface $renderer) {
$this->mediaService = $media_service;
$this->mediaSelectionProcessorManager = $media_selection_processor_manager;
$this->renderer = $renderer;
}