public function CKEditor5MediaController::__construct in Drupal 10
Constructs a new CKEditor5MediaController.
Parameters
\Drupal\Core\Session\AccountInterface $current_user: The currently authenticated user.
\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository.
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.
File
- core/
modules/ ckeditor5/ src/ Controller/ CKEditor5MediaController.php, line 62
Class
- CKEditor5MediaController
- Provides an API for checking if a media entity has image field.
Namespace
Drupal\ckeditor5\ControllerCode
public function __construct(AccountInterface $current_user, EntityRepositoryInterface $entity_repository, RequestStack $request_stack) {
$this->currentUser = $current_user;
$this->entityRepository = $entity_repository;
$this->requestStack = $request_stack;
}