You are here

public function SubscriptionForm::__construct in Commerce Recurring Framework 8

Constructs a new SubscriptionForm object.

Parameters

\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository.

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle info.

\Drupal\Component\Datetime\TimeInterface $time: The time.

\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter.

Overrides ContentEntityForm::__construct

File

src/Form/SubscriptionForm.php, line 36

Class

SubscriptionForm

Namespace

Drupal\commerce_recurring\Form

Code

public function __construct(EntityRepositoryInterface $entity_repository, EntityTypeBundleInfoInterface $entity_type_bundle_info, TimeInterface $time, DateFormatterInterface $date_formatter) {
  parent::__construct($entity_repository, $entity_type_bundle_info, $time);
  $this->dateFormatter = $date_formatter;
}