You are here

public function EventSeriesForm::__construct in Booking and Availability Management Tools for Drupal 8

Constructs a new EventSeriesForm object.

Parameters

\Drupal\Core\TempStore\PrivateTempStoreFactory $temp_store_factory: The tempstore factory.

Overrides ContentEntityForm::__construct

File

modules/bat_event_series/src/Entity/Form/EventSeriesForm.php, line 58
Contains \Drupal\bat_event_series\Entity\Form\EventSeriesForm.

Class

EventSeriesForm
Form controller for Event edit forms.

Namespace

Drupal\bat_event_series\Entity\Form

Code

public function __construct(PrivateTempStoreFactory $temp_store_factory, EntityRepositoryInterface $entity_repository, DateFormatterInterface $date_formatter, FormBuilder $formBuilder, EntityTypeBundleInfoInterface $entity_type_bundle_info = NULL, TimeInterface $time = NULL) {
  $this->tempStore = $temp_store_factory
    ->get('event_series_update_confirm');
  $this->dateFormatter = $date_formatter;
  $this->formBuilder = $formBuilder;
  parent::__construct($entity_repository, $entity_type_bundle_info, $time);
}