public function CacheflushDeleteMultiple::__construct in CacheFlush 8
Constructs a CacheflushDeleteMultiple form object.
Parameters
\Drupal\Core\TempStore\PrivateTempStoreFactory $temp_store_factory: The tempstore factory.
\Drupal\Core\Entity\EntityTypeManagerInterface $manager: The entity manager.
\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.
\Drupal\Core\Session\AccountInterface $current_user: The current user account.
File
- modules/
cacheflush_ui/ src/ Form/ CacheflushDeleteMultiple.php, line 67
Class
- CacheflushDeleteMultiple
- Provides a cacheflush deletion confirmation form.
Namespace
Drupal\cacheflush_ui\FormCode
public function __construct(PrivateTempStoreFactory $temp_store_factory, EntityTypeManagerInterface $manager, MessengerInterface $messenger, AccountInterface $current_user) {
$this->tempStoreFactory = $temp_store_factory;
$this->storage = $manager
->getStorage('cacheflush');
$this->messenger = $messenger;
$this->currentUser = $current_user;
}