FieldConfigStorage::__construct

public FieldConfigStorage::__construct(EntityTypeInterface $entity_type, ConfigFactoryInterface $config_factory, UuidInterface $uuid_service, LanguageManagerInterface $language_manager, EntityManagerInterface $entity_manager, StateInterface $state, FieldTypePluginManagerInterface $field_type_manager)

Constructs a FieldConfigStorage 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\Entity\EntityManagerInterface $entity_manager: The entity manager.

\Drupal\Core\State\StateInterface $state: The state key value store.

\Drupal\Core\Field\FieldTypePluginManagerInterface $field_type_manager: The field type plugin manager.

Overrides ConfigEntityStorage::__construct

File

core/modules/field/src/FieldConfigStorage.php, line 60

Class

FieldConfigStorage
Controller class for fields.

Namespace

Drupal\field

Code

public function __construct(EntityTypeInterface $entity_type, ConfigFactoryInterface $config_factory, UuidInterface $uuid_service, LanguageManagerInterface $language_manager, EntityManagerInterface $entity_manager, StateInterface $state, FieldTypePluginManagerInterface $field_type_manager) {
  parent::__construct($entity_type, $config_factory, $uuid_service, $language_manager);
  $this->entityManager = $entity_manager;
  $this->state = $state;
  $this->fieldTypeManager = $field_type_manager;
}
doc_Drupal
2016-10-29 09:11:19
Comments
Leave a Comment

Please login to continue.