You are here

public function MongodbShortcutSetStorage::__construct in MongoDB 8

Constructs a MongodbShortcutSetStorage object.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_info: The entity info for the entity type.

\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\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Drupal\mongodb\MongoCollectionFactory $mongo: The mongodb collection factory.

Overrides ConfigEntityStorage::__construct

File

mongodb_shortcut/src/MongodbShortcutSetStorage.php, line 51
Contains \Drupal\mongodb_shortcut\MongodbShortcutSetStorage.

Class

MongodbShortcutSetStorage

Namespace

Drupal\mongodb_shortcut

Code

public function __construct(EntityTypeInterface $entity_info, ConfigFactoryInterface $config_factory, UuidInterface $uuid_service, LanguageManagerInterface $language_manager, ModuleHandlerInterface $module_handler, MongoCollectionFactory $mongo) {
  parent::__construct($entity_info, $config_factory, $uuid_service, $language_manager);
  $this->moduleHandler = $module_handler;
  $this->mongo = $mongo;
}