You are here

public function WebformAccessGroupStorage::__construct in Webform 8.5

Constructs a WebformAccessGroupStorage object.

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

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory service.

\Drupal\Component\Uuid\UuidInterface $uuid_service: The UUID service.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

\Drupal\Core\Database\Connection $database: The database connection to be used.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\Cache\MemoryCache\MemoryCacheInterface $memory_cache: The memory cache.

Overrides ConfigEntityStorage::__construct

File

modules/webform_access/src/WebformAccessGroupStorage.php, line 57

Class

WebformAccessGroupStorage
Storage controller class for "webform_access_group" configuration entities.

Namespace

Drupal\webform_access

Code

public function __construct(EntityTypeInterface $entity_type, ConfigFactoryInterface $config_factory, UuidInterface $uuid_service, LanguageManagerInterface $language_manager, Connection $database, EntityTypeManagerInterface $entity_type_manager, MemoryCacheInterface $memory_cache = NULL) {
  parent::__construct($entity_type, $config_factory, $uuid_service, $language_manager, $memory_cache);
  $this->database = $database;
  $this->entityTypeManager = $entity_type_manager;
}