diff -u b/core/modules/taxonomy/taxonomy.module b/core/modules/taxonomy/taxonomy.module --- b/core/modules/taxonomy/taxonomy.module +++ b/core/modules/taxonomy/taxonomy.module @@ -95,7 +95,7 @@ * 'full' or 'teaser'. * - attributes: HTML attributes for the containing element. */ -function template_preprocess_taxonomy_term(&$variables) { +function template_preprocess_taxonomy_term(array &$variables) { $variables['view_mode'] = $variables['elements']['#view_mode']; $variables['term'] = $variables['elements']['#taxonomy_term']; /** @var \Drupal\taxonomy\TermInterface $term */ @@ -192,7 +192,7 @@ * @param \Drupal\node\Entity\Node $node * The node entity. */ -function taxonomy_build_node_index($node) { +function taxonomy_build_node_index(Node $node) { // We maintain a denormalized table of term/node relationships, containing // only data for current, published nodes. if (!\Drupal::config('taxonomy.settings')->get('maintain_index_table') || !(\Drupal::entityTypeManager()->getStorage('node') instanceof SqlContentEntityStorage)) { @@ -228,7 +228,7 @@ 'nid' => $node->id(), 'tid' => $tid, 'status' => (int) $node->getTranslation($langcode)->isPublished(), - 'langcode' => $langcode + 'langcode' => $langcode, ]) ->fields(['sticky' => $sticky, 'created' => $node->getCreatedTime()]) ->execute(); diff -u b/core/modules/taxonomy/taxonomy.post_update.php b/core/modules/taxonomy/taxonomy.post_update.php --- b/core/modules/taxonomy/taxonomy.post_update.php +++ b/core/modules/taxonomy/taxonomy.post_update.php @@ -23,8 +23,8 @@ } /** -+ * Populate taxonomy index new langcode column. -+ */ + * Populate taxonomy index new langcode column. + */ function taxonomy_post_update_populate_taxonomy_index_langcode(&$sandbox = NULL) { /** @var \Drupal\node\NodeStorageInterface $node_storage */ $node_storage = \Drupal::entityTypeManager()->getStorage('node'); @@ -49,12 +49,12 @@ // Retrieve the next group. $entity_ids = $database->select('taxonomy_index') - ->fields('taxonomy_index', ['nid']) - ->orderBy('nid') - ->distinct() - ->range($sandbox['progress'], $sandbox['limit']) - ->execute() - ->fetchCol(); + ->fields('taxonomy_index', ['nid']) + ->orderBy('nid') + ->distinct() + ->range($sandbox['progress'], $sandbox['limit']) + ->execute() + ->fetchCol(); $nodes = $node_storage->loadMultiple($entity_ids); foreach ($nodes as $node) {