/**
  * Constructs a FieldInstanceConfigStorage object.
  *
  * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
  *   The entity type definition.
  * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
  *   The config factory service.
  * @param \Drupal\Core\Config\StorageInterface $config_storage
  *   The config storage service.
  * @param \Drupal\Component\Uuid\UuidInterface $uuid_service
  *   The UUID service.
  * @param \Drupal\Core\Language\LanguageManagerInterface $language_manager
  *   The language manager.
  * @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager
  *   The entity manager.
  * @param \Drupal\Core\State\StateInterface $state
  *   The state key value store.
  * @param \Drupal\Component\Plugin\PluginManagerInterface\FieldTypePluginManagerInterface
  *   The field type plugin manager.
  */
 public function __construct(EntityTypeInterface $entity_type, ConfigFactoryInterface $config_factory, StorageInterface $config_storage, UuidInterface $uuid_service, LanguageManagerInterface $language_manager, EntityManagerInterface $entity_manager, StateInterface $state, FieldTypePluginManagerInterface $field_type_manager)
 {
     parent::__construct($entity_type, $config_factory, $config_storage, $uuid_service, $language_manager);
     $this->entityManager = $entity_manager;
     $this->state = $state;
     $this->fieldTypeManager = $field_type_manager;
 }
 /**
  * Constructs a ReactionRuleStorage object.
  *
  * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
  *   The entity type definition.
  * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
  *   The config factory service.
  * @param \Drupal\Component\Uuid\UuidInterface $uuid_service
  *   The UUID service.
  * @param \Drupal\Core\Language\LanguageManagerInterface $language_manager
  *   The language manager.
  * @param \Drupal\Core\State\StateInterface $state_service
  *   The state service.
  * @param \Drupal\rules\Core\RulesEventManager $event_manager
  *   The Rules event manager.
  */
 public function __construct(EntityTypeInterface $entity_type, ConfigFactoryInterface $config_factory, UuidInterface $uuid_service, LanguageManagerInterface $language_manager, StateInterface $state_service, DrupalKernelInterface $drupal_kernel, RulesEventManager $event_manager)
 {
     parent::__construct($entity_type, $config_factory, $uuid_service, $language_manager);
     $this->stateService = $state_service;
     $this->drupalKernel = $drupal_kernel;
     $this->eventManager = $event_manager;
 }
 /**
  * Constructs a FieldStorageConfigStorage object.
  *
  * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
  *   The entity type definition.
  * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
  *   The config factory service.
  * @param \Drupal\Core\Config\StorageInterface $config_storage
  *   The config storage service.
  * @param \Drupal\Component\Uuid\UuidInterface $uuid_service
  *   The UUID service.
  * @param \Drupal\Core\Language\LanguageManagerInterface $language_manager
  *   The language manager.
  * @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager
  *   The entity manager.
  * @param \Drupal\Core\Extension\ModuleHandler $module_handler
  *   The module handler.
  * @param \Drupal\Core\State\StateInterface $state
  *   The state key value store.
  */
 public function __construct(EntityTypeInterface $entity_type, ConfigFactoryInterface $config_factory, StorageInterface $config_storage, UuidInterface $uuid_service, LanguageManagerInterface $language_manager, EntityManagerInterface $entity_manager, ModuleHandler $module_handler, StateInterface $state)
 {
     parent::__construct($entity_type, $config_factory, $config_storage, $uuid_service, $language_manager);
     $this->entityManager = $entity_manager;
     $this->moduleHandler = $module_handler;
     $this->state = $state;
 }
Example #4
0
 /**
  * Constructs a GradeScaleStorageController object.
  *
  * @param \Drupal\Core\Entity\EntityTypeInterface $entity_info
  *   The entity info for the entity type.
  * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
  *   The config factory service.
  * @param \Drupal\Component\Uuid\UuidInterface $uuid_service
  *   The UUID service.
  * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
  *   The module handler.
  * @param \Drupal\Core\Language\LanguageManagerInterface $language_manager
  *   The language manager.
  */
 public function __construct(EntityTypeInterface $entity_info, ConfigFactoryInterface $config_factory, UuidInterface $uuid_service, ModuleHandlerInterface $module_handler, LanguageManagerInterface $language_manager)
 {
     parent::__construct($entity_info, $config_factory, $uuid_service, $language_manager);
     $this->moduleHandler = $module_handler;
 }
 /**
  * Constructs a ReactionRuleStorage object.
  *
  * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
  *   The entity type definition.
  * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
  *   The config factory service.
  * @param \Drupal\Component\Uuid\UuidInterface $uuid_service
  *   The UUID service.
  * @param \Drupal\Core\Language\LanguageManagerInterface $language_manager
  *   The language manager.
  * @param \Drupal\Core\State\StateInterface $state_service
  *   The state service.
  */
 public function __construct(EntityTypeInterface $entity_type, ConfigFactoryInterface $config_factory, UuidInterface $uuid_service, LanguageManagerInterface $language_manager, StateInterface $state_service)
 {
     parent::__construct($entity_type, $config_factory, $uuid_service, $language_manager);
     $this->stateService = $state_service;
 }
Example #6
0
 /**
  * Constructs a MigrationStorage object.
  *
  * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
  *   An entity type definition.
  * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
  *   The config factory service.
  * @param \Drupal\Component\Uuid\UuidInterface $uuid_service
  *   The UUID service.
  * @param \Drupal\Core\Language\LanguageManagerInterface $language_manager
  *   The language manager.
  * @param \Drupal\Core\Entity\Query\QueryFactoryInterface $query_factory
  *   The entity query factory service.
  */
 public function __construct(EntityTypeInterface $entity_type, ConfigFactoryInterface $config_factory, UuidInterface $uuid_service, LanguageManagerInterface $language_manager, QueryFactoryInterface $query_factory)
 {
     parent::__construct($entity_type, $config_factory, $uuid_service, $language_manager);
     $this->queryFactory = $query_factory;
 }