function TempstoreConverter::__construct
Same name in other branches
- 8.x-3.x src/ParamConverter/TempstoreConverter.php \Drupal\ctools\ParamConverter\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\ParamConverterCode
public function __construct(SharedTempStoreFactory $tempstore, EntityTypeManagerInterface $entity_type_manager) {
$this->tempstore = $tempstore;
$this->entityTypeManager = $entity_type_manager;
}