You are here

public function SimpleSitemapStorage::__construct in Simple XML sitemap 4.x

Constructs a ConfigEntityStorage object.

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\Cache\MemoryCache\MemoryCacheInterface $memory_cache: The memory cache backend.

Overrides ConfigEntityStorage::__construct

File

src/Entity/SimpleSitemapStorage.php, line 34

Class

SimpleSitemapStorage

Namespace

Drupal\simple_sitemap\Entity

Code

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