>
diff --git a/core/modules/views/lib/Drupal/views/Tests/DefaultViewsTest.php b/core/modules/views/lib/Drupal/views/Tests/DefaultViewsTest.php
index c4f90b8..126e62d 100644
--- a/core/modules/views/lib/Drupal/views/Tests/DefaultViewsTest.php
+++ b/core/modules/views/lib/Drupal/views/Tests/DefaultViewsTest.php
@@ -96,7 +96,7 @@ protected function setUp() {
$term = $this->createTerm($this->vocabulary);
$values = array('created' => $time, 'type' => 'page');
- $values[$this->field_name][]['tid'] = $term->tid;
+ $values[$this->field_name][]['tid'] = $term->id();
// Make every other node promoted.
if ($i % 2) {
diff --git a/core/modules/views/views_ui/admin.inc b/core/modules/views/views_ui/admin.inc
index abf75b0..a2ab910 100644
--- a/core/modules/views/views_ui/admin.inc
+++ b/core/modules/views/views_ui/admin.inc
@@ -237,7 +237,7 @@ function views_ui_taxonomy_autocomplete_validate($element, &$form_state) {
foreach ($typed_terms as $typed_term) {
if ($terms = entity_load_multiple_by_properties('taxonomy_term', array('name' => trim($typed_term), 'vid' => array_keys($vocabularies)))) {
$term = array_pop($terms);
- $value['tids'][] = $term->tid;
+ $value['tids'][] = $term->id();
}
}
// Store the term IDs along with the name of the vocabulary. Currently
diff --git a/core/scripts/generate-d7-content.sh b/core/scripts/generate-d7-content.sh
index a19d329..c171271 100644
--- a/core/scripts/generate-d7-content.sh
+++ b/core/scripts/generate-d7-content.sh
@@ -151,9 +151,9 @@
'weight' => $i * 3 + $j,
));
taxonomy_term_save($term);
- $terms[] = $term->tid;
- $term_vocabs[$term->tid] = 'taxonomy_' . $vocabulary->machine_name;
- $parents[] = $term->tid;
+ $terms[] = $term->id();
+ $term_vocabs[$term->id()] = 'taxonomy_' . $vocabulary->machine_name;
+ $parents[] = $term->id();
}
}
$node_id = 0;