You are here

public function ShortcutSetStorage::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/shortcut/src/ShortcutSetStorage.php \Drupal\shortcut\ShortcutSetStorage::__construct()
  2. 9 core/modules/shortcut/src/ShortcutSetStorage.php \Drupal\shortcut\ShortcutSetStorage::__construct()

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

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

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

\Drupal\Core\Database\Connection $connection: The database connection.

Overrides ConfigEntityStorage::__construct

File

core/modules/shortcut/src/ShortcutSetStorage.php, line 54

Class

ShortcutSetStorage
Defines a storage for shortcut_set entities.

Namespace

Drupal\shortcut

Code

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