public function WishlistItemForm::__construct in Commerce Wishlist 8.3
Constructs a new WishlistItemForm 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.
\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter.
\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager.
Overrides ContentEntityForm::__construct
File
- src/
Form/ WishlistItemForm.php, line 51
Class
- WishlistItemForm
- Defines the wishlist item add/edit form.
Namespace
Drupal\commerce_wishlist\FormCode
public function __construct(EntityRepositoryInterface $entity_repository, EntityTypeBundleInfoInterface $entity_type_bundle_info, TimeInterface $time, DateFormatterInterface $date_formatter, EntityFieldManagerInterface $entity_field_manager) {
parent::__construct($entity_repository, $entity_type_bundle_info, $time);
$this->dateFormatter = $date_formatter;
$this->entityFieldManager = $entity_field_manager;
}