public function EditorFileDialog::__construct in Editor File upload 8
Constructs a form object for image dialog.
Parameters
\Drupal\Core\Entity\EntityStorageInterface $file_storage: The file storage service.
\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository service.
File
- src/
Form/ EditorFileDialog.php, line 46
Class
- EditorFileDialog
- Provides a link dialog for text editors.
Namespace
Drupal\editor_file\FormCode
public function __construct(EntityStorageInterface $file_storage, EntityRepositoryInterface $entity_repository) {
$this->fileStorage = $file_storage;
$this->entityRepository = $entity_repository;
}