public function WebformEntityStorage::__construct in Webform 8.5
Constructs a WebformEntityStorage 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 service.
\Drupal\Core\Cache\MemoryCache\MemoryCacheInterface $memory_cache: The memory cache.
\Drupal\Core\File\FileSystemInterface $file_system: The helpers to operate on files.
Overrides ConfigEntityStorage::__construct
File
- src/
WebformEntityStorage.php, line 74
Class
- WebformEntityStorage
- Storage controller class for "webform" configuration entities.
Namespace
Drupal\webformCode
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, FileSystemInterface $file_system) {
parent::__construct($entity_type, $config_factory, $uuid_service, $language_manager, $memory_cache);
$this->database = $database;
$this->entityTypeManager = $entity_type_manager;
$this->fileSystem = $file_system;
}