comparison core/modules/taxonomy/tests/src/Functional/TaxonomyTranslationTestTrait.php @ 18:af1871eacc83

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:33:08 +0100
parents 129ea1e6d783
children
comparison
equal deleted inserted replaced
17:129ea1e6d783 18:af1871eacc83
64 // Enable translation for the current entity type and ensure the change is 64 // Enable translation for the current entity type and ensure the change is
65 // picked up. 65 // picked up.
66 \Drupal::service('content_translation.manager')->setEnabled('node', 'article', TRUE); 66 \Drupal::service('content_translation.manager')->setEnabled('node', 'article', TRUE);
67 \Drupal::service('content_translation.manager')->setEnabled('taxonomy_term', $this->vocabulary->id(), TRUE); 67 \Drupal::service('content_translation.manager')->setEnabled('taxonomy_term', $this->vocabulary->id(), TRUE);
68 drupal_static_reset(); 68 drupal_static_reset();
69 \Drupal::entityManager()->clearCachedDefinitions();
70 \Drupal::service('router.builder')->rebuild(); 69 \Drupal::service('router.builder')->rebuild();
71 \Drupal::service('entity.definition_update_manager')->applyUpdates();
72 } 70 }
73 71
74 /** 72 /**
75 * Adds term reference field for the article content type. 73 * Adds term reference field for the article content type.
76 */ 74 */