You are here

public function PhotosDirectoryImportForm::__construct in Album Photos 8.5

Same name and namespace in other branches
  1. 8.4 src/Form/PhotosDirectoryImportForm.php \Drupal\photos\Form\PhotosDirectoryImportForm::__construct()
  2. 6.0.x 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\Form

Code

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;
}