public function PhotosDirectoryImportForm::__construct in Album Photos 6.0.x
Same name and namespace in other branches
- 8.5 src/Form/PhotosDirectoryImportForm.php \Drupal\photos\Form\PhotosDirectoryImportForm::__construct()
- 8.4 src/Form/PhotosDirectoryImportForm.php \Drupal\photos\Form\PhotosDirectoryImportForm::__construct()
Constructor.
Parameters
\Drupal\Core\Database\Connection $connection: The database connection.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_manager: The entity manager service.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
\Drupal\Core\File\FileSystem $file_system: The file system service.
File
- src/
Form/ PhotosDirectoryImportForm.php, line 68
Class
- PhotosDirectoryImportForm
- Defines a form to upload photos to this site.
Namespace
Drupal\photos\FormCode
public function __construct(Connection $connection, EntityTypeManagerInterface $entity_manager, ModuleHandlerInterface $module_handler, FileSystem $file_system) {
$this->connection = $connection;
$this->entityTypeManager = $entity_manager;
$this->moduleHandler = $module_handler;
$this->fileSystem = $file_system;
}