public function MediaController::__construct in Gutenberg 8
Same name and namespace in other branches
- 8.2 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.
File
- src/
Controller/ MediaController.php, line 45
Class
- MediaController
- Returns responses for our image routes.
Namespace
Drupal\gutenberg\ControllerCode
public function __construct(MediaService $media_service, MediaSelectionProcessorManagerInterface $media_selection_processor_manager) {
$this->mediaService = $media_service;
$this->mediaSelectionProcessorManager = $media_selection_processor_manager;
}