3 namespace Drupal\Core\Field;
5 use Drupal\Core\Entity\EntityTypeInterface;
6 use Drupal\Core\Language\LanguageManagerInterface;
7 use Symfony\Component\DependencyInjection\ContainerInterface;
8 use Drupal\Core\Config\ConfigFactoryInterface;
9 use Drupal\Component\Uuid\UuidInterface;
12 * Storage class for base field overrides.
14 class BaseFieldOverrideStorage extends FieldConfigStorageBase {
17 * Constructs a BaseFieldOverrideStorage object.
19 * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
20 * The entity type definition.
21 * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
22 * The config factory service.
23 * @param \Drupal\Component\Uuid\UuidInterface $uuid_service
25 * @param \Drupal\Core\Language\LanguageManagerInterface $language_manager
26 * The language manager.
27 * @param \Drupal\Core\Field\FieldTypePluginManagerInterface $field_type_manager
28 * The field type plugin manager.
30 public function __construct(EntityTypeInterface $entity_type, ConfigFactoryInterface $config_factory, UuidInterface $uuid_service, LanguageManagerInterface $language_manager, FieldTypePluginManagerInterface $field_type_manager) {
31 parent::__construct($entity_type, $config_factory, $uuid_service, $language_manager);
32 $this->fieldTypeManager = $field_type_manager;
38 public static function createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) {
41 $container->get('config.factory'),
42 $container->get('uuid'),
43 $container->get('language_manager'),
44 $container->get('plugin.manager.field.field_type')