public function FieldInstanceStorageController::__construct

Constructs a FieldInstanceStorageController object.

Parameters

string $entity_type: The entity type for which the instance is created.

array $entity_info: An array of entity info for the entity type.

\Drupal\Core\Config\ConfigFactory $config_factory: The config factory service.

\Drupal\Core\Config\StorageInterface $config_storage: The config storage service.

\Drupal\Core\Entity\EntityManager $entity_manager: The entity manager.

\Drupal\Core\Extension\ModuleHandler $module_handler: The module handler.

\Drupal\Core\KeyValueStore\KeyValueStoreInterface $state: The state key value store.

Overrides ConfigStorageController::__construct

File

drupal/core/modules/field/lib/Drupal/field/FieldInstanceStorageController.php, line 68
Contains \Drupal\field\FieldInstanceStorageController.

Class

FieldInstanceStorageController
Controller class for field instances.

Namespace

Drupal\field

Code

public function __construct($entity_type, array $entity_info, ConfigFactory $config_factory, StorageInterface $config_storage, EntityManager $entity_manager, ModuleHandler $module_handler, KeyValueStoreInterface $state) {
  parent::__construct($entity_type, $entity_info, $config_factory, $config_storage);
  $this->entityManager = $entity_manager;
  $this->moduleHandler = $module_handler;
  $this->state = $state;
}