3 namespace Drupal\Core\Field;
5 use Drupal\Core\Cache\MemoryCache\MemoryCacheInterface;
6 use Drupal\Core\Entity\EntityTypeInterface;
7 use Drupal\Core\Language\LanguageManagerInterface;
8 use Symfony\Component\DependencyInjection\ContainerInterface;
9 use Drupal\Core\Config\ConfigFactoryInterface;
10 use Drupal\Component\Uuid\UuidInterface;
13 * Storage class for base field overrides.
15 class BaseFieldOverrideStorage extends FieldConfigStorageBase {
18 * Constructs a BaseFieldOverrideStorage object.
20 * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
21 * The entity type definition.
22 * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
23 * The config factory service.
24 * @param \Drupal\Component\Uuid\UuidInterface $uuid_service
26 * @param \Drupal\Core\Language\LanguageManagerInterface $language_manager
27 * The language manager.
28 * @param \Drupal\Core\Field\FieldTypePluginManagerInterface $field_type_manager
29 * The field type plugin manager.
30 * @param \Drupal\Core\Cache\MemoryCache\MemoryCacheInterface $memory_cache
33 public function __construct(EntityTypeInterface $entity_type, ConfigFactoryInterface $config_factory, UuidInterface $uuid_service, LanguageManagerInterface $language_manager, FieldTypePluginManagerInterface $field_type_manager, MemoryCacheInterface $memory_cache) {
34 parent::__construct($entity_type, $config_factory, $uuid_service, $language_manager, $memory_cache);
35 $this->fieldTypeManager = $field_type_manager;
41 public static function createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) {
44 $container->get('config.factory'),
45 $container->get('uuid'),
46 $container->get('language_manager'),
47 $container->get('plugin.manager.field.field_type'),
48 $container->get('entity.memory_cache')