You are here

public function PhotosUploadForm::__construct in Album Photos 8.5

Same name and namespace in other branches
  1. 8.4 src/Form/PhotosUploadForm.php \Drupal\photos\Form\PhotosUploadForm::__construct()
  2. 6.0.x src/Form/PhotosUploadForm.php \Drupal\photos\Form\PhotosUploadForm::__construct()

Constructor.

Parameters

\Drupal\Core\Database\Connection $connection: The database connection.

\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_manager: The entity manager service.

\Drupal\Core\File\FileSystem $file_system: The file system service.

\Drupal\Core\Image\ImageFactory $image_factory: The image factory.

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match.

\Drupal\photos\PhotosUploadInterface $photos_upload: The photos upload handler.

File

src/Form/PhotosUploadForm.php, line 120

Class

PhotosUploadForm
Defines a form to upload photos to this site.

Namespace

Drupal\photos\Form

Code

public function __construct(Connection $connection, EntityFieldManagerInterface $entity_field_manager, EntityTypeManagerInterface $entity_manager, FileSystem $file_system, ImageFactory $image_factory, MessengerInterface $messenger, ModuleHandlerInterface $module_handler, RouteMatchInterface $route_match, PhotosUploadInterface $photos_upload) {
  $this->connection = $connection;
  $this->entityFieldManager = $entity_field_manager;
  $this->entityTypeManager = $entity_manager;
  $this->fileSystem = $file_system;
  $this->imageFactory = $image_factory;
  $this->logger = $this
    ->getLogger('photos');
  $this->messenger = $messenger;
  $this->moduleHandler = $module_handler;
  $this->routeMatch = $route_match;
  $this->photosUpload = $photos_upload;
}