You are here

public function MultistepFormBase::__construct in GatherContent 8.3

Constructor for class.

Parameters

\Drupal\Core\Entity\EntityManagerInterface $entity_manager: EntityManagerInterface object.

\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: DateFormatterInterface object.

\Drupal\user\PrivateTempStoreFactory $temp_store_factory: PrivateTempStoreFactory object.

\Drupal\Core\Entity\Query\QueryFactory $entityQuery: QueryFactory object.

File

src/Form/MultistepFormBase.php, line 68

Class

MultistepFormBase
Class MultistepFormBase.

Namespace

Drupal\gathercontent\Form

Code

public function __construct(EntityManagerInterface $entity_manager, DateFormatterInterface $date_formatter, PrivateTempStoreFactory $temp_store_factory, QueryFactory $entityQuery) {
  $this->entityManager = $entity_manager;
  $this->dateFormatter = $date_formatter;
  $this->tempStoreFactory = $temp_store_factory;
  $this->entityQuery = $entityQuery;
  $this->store = $this->tempStoreFactory
    ->get('gathercontent_multistep_data');
}