Mercurial > hg > isophonics-drupal-site
diff core/modules/field/src/FieldStorageConfigStorage.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 1fec387a4317 |
children |
line wrap: on
line diff
--- a/core/modules/field/src/FieldStorageConfigStorage.php Tue Jul 10 15:07:59 2018 +0100 +++ b/core/modules/field/src/FieldStorageConfigStorage.php Thu Feb 28 13:21:36 2019 +0000 @@ -3,6 +3,7 @@ namespace Drupal\field; use Drupal\Component\Uuid\UuidInterface; +use Drupal\Core\Cache\MemoryCache\MemoryCacheInterface; use Drupal\Core\Config\Entity\ConfigEntityStorage; use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Entity\EntityManagerInterface; @@ -66,9 +67,11 @@ * The field type plugin manager. * @param \Drupal\Core\Field\DeletedFieldsRepositoryInterface $deleted_fields_repository * The deleted fields repository. + * @param \Drupal\Core\Cache\MemoryCache\MemoryCacheInterface $memory_cache + * The memory cache. */ - 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) { - parent::__construct($entity_type, $config_factory, $uuid_service, $language_manager); + 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) { + parent::__construct($entity_type, $config_factory, $uuid_service, $language_manager, $memory_cache); $this->entityManager = $entity_manager; $this->moduleHandler = $module_handler; $this->fieldTypeManager = $field_type_manager; @@ -87,7 +90,8 @@ $container->get('entity.manager'), $container->get('module_handler'), $container->get('plugin.manager.field.field_type'), - $container->get('entity_field.deleted_fields_repository') + $container->get('entity_field.deleted_fields_repository'), + $container->get('entity.memory_cache') ); }