function CKEditor5MediaController::__construct
Same name in other branches
- 9 core/modules/ckeditor5/src/Controller/CKEditor5MediaController.php \Drupal\ckeditor5\Controller\CKEditor5MediaController::__construct()
- 11.x core/modules/ckeditor5/src/Controller/CKEditor5MediaController.php \Drupal\ckeditor5\Controller\CKEditor5MediaController::__construct()
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 61
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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.