You are here

public function PhotosUploadForm::__construct in Album Photos 8.4

Same name and namespace in other branches
  1. 8.5 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\EntityTypeManagerInterface $entity_manager: The entity manager service.

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

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

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

File

src/Form/PhotosUploadForm.php, line 81

Class

PhotosUploadForm
Defines a form to upload photos to this site.

Namespace

Drupal\photos\Form

Code

public function __construct(Connection $connection, EntityTypeManagerInterface $entity_manager, ImageFactory $image_factory, ModuleHandlerInterface $module_handler, RouteMatchInterface $route_match) {
  $this->connection = $connection;
  $this->entityTypeManager = $entity_manager;
  $this->imageFactory = $image_factory;
  $this->logger = $this
    ->getLogger('photos');
  $this->moduleHandler = $module_handler;
  $this->routeMatch = $route_match;
}