You are here

public function WebformSubmissionStorage::__construct in Webform 8.5

WebformSubmissionStorage constructor.

@todo Webform 8.x-6.x: Move $time before $access_rules_manager. @todo Webform 8.x-6.x: Move $memory_cache right after $language_manager.

Overrides SqlContentEntityStorage::__construct

File

src/WebformSubmissionStorage.php, line 82

Class

WebformSubmissionStorage
Defines the webform submission storage.

Namespace

Drupal\webform

Code

public function __construct(EntityTypeInterface $entity_type, Connection $database, EntityManagerInterface $entity_manager, CacheBackendInterface $cache, LanguageManagerInterface $language_manager, AccountProxyInterface $current_user, WebformAccessRulesManagerInterface $access_rules_manager, TimeInterface $time = NULL, MemoryCacheInterface $memory_cache = NULL, FileSystemInterface $file_system = NULL, ReplicaKillSwitch $replica_kill_switch = NULL) {
  parent::__construct($entity_type, $database, $entity_manager, $cache, $language_manager, $memory_cache);
  $this->currentUser = $current_user;
  $this->accessRulesManager = $access_rules_manager;
  $this->time = $time ?: \Drupal::time();
  $this->fileSystem = $file_system ?: \Drupal::service('file_system');
  $this->replicaKillSwitch = $replica_kill_switch ?: \Drupal::service('database.replica_kill_switch');
}