public function PhotosImageEditForm::__construct in Album Photos 6.0.x
Same name and namespace in other branches
- 8.5 src/Form/PhotosImageEditForm.php \Drupal\photos\Form\PhotosImageEditForm::__construct()
- 8.4 src/Form/PhotosImageEditForm.php \Drupal\photos\Form\PhotosImageEditForm::__construct()
Constructs a ContentEntityForm object.
Parameters
\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository service.
\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle service.
\Drupal\Component\Datetime\TimeInterface $time: The time service.
Overrides ContentEntityForm::__construct
File
- src/
Form/ PhotosImageEditForm.php, line 80
Class
- PhotosImageEditForm
- Defines a form to edit images.
Namespace
Drupal\photos\FormCode
public function __construct(Connection $connection, DateFormatterInterface $date_formatter, EntityTypeManagerInterface $entity_type_manager, MessengerInterface $messenger, ModuleHandlerInterface $module_handler, RendererInterface $renderer, EntityTypeBundleInfoInterface $entity_type_bundle_info = NULL, EntityRepositoryInterface $entity_repository, TimeInterface $time = NULL, AccountInterface $current_user) {
parent::__construct($entity_repository, $entity_type_bundle_info, $time);
$this->connection = $connection;
$this->dateFormatter = $date_formatter;
$this->entityTypeManager = $entity_type_manager;
$this->messenger = $messenger;
$this->moduleHandler = $module_handler;
$this->renderer = $renderer;
$this->currentUser = $current_user;
}