function TempstoreConverter::__construct

Constructs a TempstoreConverter.

Parameters

\Drupal\Core\TempStore\SharedTempStoreFactory $tempstore:

File

src/ParamConverter/TempstoreConverter.php, line 101

Class

TempstoreConverter
Parameter converter for pulling entities out of the tempstore.

Namespace

Drupal\ctools\ParamConverter

Code

public function __construct(SharedTempStoreFactory $tempstore, EntityTypeManagerInterface $entity_type_manager) {
  $this->tempstore = $tempstore;
  $this->entityTypeManager = $entity_type_manager;
}