comparison core/modules/field/src/FieldStorageConfigStorage.php @ 4:a9cd425dd02b

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:11:55 +0000
parents c75dbcec494b
children
comparison
equal deleted inserted replaced
3:307d7a7fd348 4:a9cd425dd02b
1 <?php 1 <?php
2 2
3 namespace Drupal\field; 3 namespace Drupal\field;
4 4
5 use Drupal\Component\Uuid\UuidInterface; 5 use Drupal\Component\Uuid\UuidInterface;
6 use Drupal\Core\Cache\MemoryCache\MemoryCacheInterface;
6 use Drupal\Core\Config\Entity\ConfigEntityStorage; 7 use Drupal\Core\Config\Entity\ConfigEntityStorage;
7 use Drupal\Core\Entity\EntityInterface; 8 use Drupal\Core\Entity\EntityInterface;
8 use Drupal\Core\Entity\EntityManagerInterface; 9 use Drupal\Core\Entity\EntityManagerInterface;
9 use Drupal\Core\Entity\EntityTypeInterface; 10 use Drupal\Core\Entity\EntityTypeInterface;
10 use Drupal\Core\Field\DeletedFieldsRepositoryInterface; 11 use Drupal\Core\Field\DeletedFieldsRepositoryInterface;
64 * The module handler. 65 * The module handler.
65 * @param \Drupal\Core\Field\FieldTypePluginManagerInterface $field_type_manager 66 * @param \Drupal\Core\Field\FieldTypePluginManagerInterface $field_type_manager
66 * The field type plugin manager. 67 * The field type plugin manager.
67 * @param \Drupal\Core\Field\DeletedFieldsRepositoryInterface $deleted_fields_repository 68 * @param \Drupal\Core\Field\DeletedFieldsRepositoryInterface $deleted_fields_repository
68 * The deleted fields repository. 69 * The deleted fields repository.
70 * @param \Drupal\Core\Cache\MemoryCache\MemoryCacheInterface $memory_cache
71 * The memory cache.
69 */ 72 */
70 public function __construct(EntityTypeInterface $entity_type, ConfigFactoryInterface $config_factory, UuidInterface $uuid_service, LanguageManagerInterface $language_manager, EntityManagerInterface $entity_manager, ModuleHandlerInterface $module_handler, FieldTypePluginManagerInterface $field_type_manager, DeletedFieldsRepositoryInterface $deleted_fields_repository) { 73 public function __construct(EntityTypeInterface $entity_type, ConfigFactoryInterface $config_factory, UuidInterface $uuid_service, LanguageManagerInterface $language_manager, EntityManagerInterface $entity_manager, ModuleHandlerInterface $module_handler, FieldTypePluginManagerInterface $field_type_manager, DeletedFieldsRepositoryInterface $deleted_fields_repository, MemoryCacheInterface $memory_cache) {
71 parent::__construct($entity_type, $config_factory, $uuid_service, $language_manager); 74 parent::__construct($entity_type, $config_factory, $uuid_service, $language_manager, $memory_cache);
72 $this->entityManager = $entity_manager; 75 $this->entityManager = $entity_manager;
73 $this->moduleHandler = $module_handler; 76 $this->moduleHandler = $module_handler;
74 $this->fieldTypeManager = $field_type_manager; 77 $this->fieldTypeManager = $field_type_manager;
75 $this->deletedFieldsRepository = $deleted_fields_repository; 78 $this->deletedFieldsRepository = $deleted_fields_repository;
76 } 79 }
85 $container->get('uuid'), 88 $container->get('uuid'),
86 $container->get('language_manager'), 89 $container->get('language_manager'),
87 $container->get('entity.manager'), 90 $container->get('entity.manager'),
88 $container->get('module_handler'), 91 $container->get('module_handler'),
89 $container->get('plugin.manager.field.field_type'), 92 $container->get('plugin.manager.field.field_type'),
90 $container->get('entity_field.deleted_fields_repository') 93 $container->get('entity_field.deleted_fields_repository'),
94 $container->get('entity.memory_cache')
91 ); 95 );
92 } 96 }
93 97
94 /** 98 /**
95 * {@inheritdoc} 99 * {@inheritdoc}