public function WorkflowStorage::__construct in Workflow 8
Constructs a WorkflowStorage 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.
\Drupal\Core\State\StateInterface $state_service: The state service.
Overrides ConfigEntityStorage::__construct
File
- src/
Entity/ WorkflowStorage.php, line 42
Class
- WorkflowStorage
- Storage handler for workflow config entities.
Namespace
Drupal\workflow\EntityCode
public function __construct(EntityTypeInterface $entity_type, ConfigFactoryInterface $config_factory, UuidInterface $uuid_service, LanguageManagerInterface $language_manager, MemoryCacheInterface $memory_cache, StateInterface $state_service) {
parent::__construct($entity_type, $config_factory, $uuid_service, $language_manager, $memory_cache);
$this->stateService = $state_service;
}