You are here

public function ContactEmailForm::__construct in Contact Emails 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.

\Drupal\contact_emails\ContactEmails $contact_emails: The contact emails service.

Overrides ContentEntityForm::__construct

File

src/Form/ContactEmailForm.php, line 38

Class

ContactEmailForm
Defines the tax service add/edit form.

Namespace

Drupal\contact_emails\Form

Code

public function __construct(EntityRepositoryInterface $entity_repository, EntityTypeBundleInfoInterface $entity_type_bundle_info, TimeInterface $time, ContactEmails $contact_emails) {
  $this->entityRepository = $entity_repository;
  $this->entityTypeBundleInfo = $entity_type_bundle_info;
  $this->time = $time;
  $this->contactEmails = $contact_emails;
}