Mercurial > hg > cmmr2012-drupal-site
comparison core/modules/field/src/FieldConfigStorage.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\Core\Cache\MemoryCache\MemoryCacheInterface; | |
5 use Drupal\Core\Config\Config; | 6 use Drupal\Core\Config\Config; |
6 use Drupal\Core\Entity\EntityManagerInterface; | 7 use Drupal\Core\Entity\EntityManagerInterface; |
7 use Drupal\Core\Entity\EntityTypeInterface; | 8 use Drupal\Core\Entity\EntityTypeInterface; |
8 use Drupal\Core\Field\DeletedFieldsRepositoryInterface; | 9 use Drupal\Core\Field\DeletedFieldsRepositoryInterface; |
9 use Drupal\Core\Field\FieldConfigStorageBase; | 10 use Drupal\Core\Field\FieldConfigStorageBase; |
54 * The entity manager. | 55 * The entity manager. |
55 * @param \Drupal\Core\Field\FieldTypePluginManagerInterface $field_type_manager | 56 * @param \Drupal\Core\Field\FieldTypePluginManagerInterface $field_type_manager |
56 * The field type plugin manager. | 57 * The field type plugin manager. |
57 * @param \Drupal\Core\Field\DeletedFieldsRepositoryInterface $deleted_fields_repository | 58 * @param \Drupal\Core\Field\DeletedFieldsRepositoryInterface $deleted_fields_repository |
58 * The deleted fields repository. | 59 * The deleted fields repository. |
60 * @param \Drupal\Core\Cache\MemoryCache\MemoryCacheInterface $memory_cache | |
61 * The memory cache. | |
59 */ | 62 */ |
60 public function __construct(EntityTypeInterface $entity_type, ConfigFactoryInterface $config_factory, UuidInterface $uuid_service, LanguageManagerInterface $language_manager, EntityManagerInterface $entity_manager, FieldTypePluginManagerInterface $field_type_manager, DeletedFieldsRepositoryInterface $deleted_fields_repository) { | 63 public function __construct(EntityTypeInterface $entity_type, ConfigFactoryInterface $config_factory, UuidInterface $uuid_service, LanguageManagerInterface $language_manager, EntityManagerInterface $entity_manager, FieldTypePluginManagerInterface $field_type_manager, DeletedFieldsRepositoryInterface $deleted_fields_repository, MemoryCacheInterface $memory_cache) { |
61 parent::__construct($entity_type, $config_factory, $uuid_service, $language_manager); | 64 parent::__construct($entity_type, $config_factory, $uuid_service, $language_manager, $memory_cache); |
62 $this->entityManager = $entity_manager; | 65 $this->entityManager = $entity_manager; |
63 $this->fieldTypeManager = $field_type_manager; | 66 $this->fieldTypeManager = $field_type_manager; |
64 $this->deletedFieldsRepository = $deleted_fields_repository; | 67 $this->deletedFieldsRepository = $deleted_fields_repository; |
65 } | 68 } |
66 | 69 |
73 $container->get('config.factory'), | 76 $container->get('config.factory'), |
74 $container->get('uuid'), | 77 $container->get('uuid'), |
75 $container->get('language_manager'), | 78 $container->get('language_manager'), |
76 $container->get('entity.manager'), | 79 $container->get('entity.manager'), |
77 $container->get('plugin.manager.field.field_type'), | 80 $container->get('plugin.manager.field.field_type'), |
78 $container->get('entity_field.deleted_fields_repository') | 81 $container->get('entity_field.deleted_fields_repository'), |
82 $container->get('entity.memory_cache') | |
79 ); | 83 ); |
80 } | 84 } |
81 | 85 |
82 /** | 86 /** |
83 * {@inheritdoc} | 87 * {@inheritdoc} |