diff core/modules/config_translation/src/ConfigFieldMapper.php @ 18:af1871eacc83

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:33:08 +0100
parents 4c8ae668cc8c
children
line wrap: on
line diff
--- a/core/modules/config_translation/src/ConfigFieldMapper.php	Thu Feb 28 13:21:36 2019 +0000
+++ b/core/modules/config_translation/src/ConfigFieldMapper.php	Thu May 09 15:33:08 2019 +0100
@@ -26,7 +26,7 @@
    */
   public function getBaseRouteParameters() {
     $parameters = parent::getBaseRouteParameters();
-    $base_entity_info = $this->entityManager->getDefinition($this->pluginDefinition['base_entity_type']);
+    $base_entity_info = $this->entityTypeManager->getDefinition($this->pluginDefinition['base_entity_type']);
     $bundle_parameter_key = $base_entity_info->getBundleEntityType() ?: 'bundle';
     $parameters[$bundle_parameter_key] = $this->entity->getTargetBundle();
     return $parameters;
@@ -43,7 +43,7 @@
    * {@inheritdoc}
    */
   public function getTypeLabel() {
-    $base_entity_info = $this->entityManager->getDefinition($this->pluginDefinition['base_entity_type']);
+    $base_entity_info = $this->entityTypeManager->getDefinition($this->pluginDefinition['base_entity_type']);
     return $this->t('@label fields', ['@label' => $base_entity_info->getLabel()]);
   }
 
@@ -58,7 +58,7 @@
       /** @var \Drupal\field\FieldStorageConfigInterface $field_storage */
       $field_storage = $this->entity->getFieldStorageDefinition();
       /** @var \Drupal\Core\Config\Entity\ConfigEntityTypeInterface $entity_type_info */
-      $entity_type_info = $this->entityManager->getDefinition($field_storage->getEntityTypeId());
+      $entity_type_info = $this->entityTypeManager->getDefinition($field_storage->getEntityTypeId());
       $this->addConfigName($entity_type_info->getConfigPrefix() . '.' . $field_storage->id());
       return TRUE;
     }