public function PopupOnLoadForm::__construct in Popup On Load 8
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/ PopupOnLoadForm.php, line 30
Class
- PopupOnLoadForm
- Form controller for Popup On Load edit forms.
Namespace
Drupal\popup_onload\FormCode
public function __construct(EntityRepositoryInterface $entity_repository, MessengerInterface $messenger, EntityTypeBundleInfoInterface $entity_type_bundle_info = NULL, TimeInterface $time = NULL) {
parent::__construct($entity_repository, $entity_type_bundle_info, $time = NULL);
$this->messenger = $messenger;
}