diff --git a/core/lib/Drupal/Core/Entity/EntityViewBuilder.php b/core/lib/Drupal/Core/Entity/EntityViewBuilder.php index 8518e29..af0e992 100644 --- a/core/lib/Drupal/Core/Entity/EntityViewBuilder.php +++ b/core/lib/Drupal/Core/Entity/EntityViewBuilder.php @@ -284,7 +284,7 @@ public function preprocess(array &$variables) { } $variables['view_mode'] = $variables['elements']['#view_mode']; - $entity = $variables['elements']['#' . $this->entityTypeId];; + $entity = $variables['elements']['#' . $this->entityTypeId]; $variables[$this->entityTypeId] = $entity; $variables['url'] = $entity->url(); diff --git a/core/lib/Drupal/Core/Entity/EntityViewBuilderInterface.php b/core/lib/Drupal/Core/Entity/EntityViewBuilderInterface.php index a87c55a..878e4a4 100644 --- a/core/lib/Drupal/Core/Entity/EntityViewBuilderInterface.php +++ b/core/lib/Drupal/Core/Entity/EntityViewBuilderInterface.php @@ -85,7 +85,7 @@ public function viewMultiple(array $entities = array(), $view_mode = 'full', $la public function resetCache(array $entities = NULL); /** - * Preprocess variables. + * Preprocesses variables. * * @param array $variables * An associative array containing the entity variables to be rendered. diff --git a/core/modules/rdf/rdf.module b/core/modules/rdf/rdf.module index 01cb430..a585995 100644 --- a/core/modules/rdf/rdf.module +++ b/core/modules/rdf/rdf.module @@ -516,7 +516,8 @@ function rdf_preprocess_comment(&$variables) { * Implements hook_preprocess_HOOK() for taxonomy term templates. */ function rdf_preprocess_taxonomy_term(&$variables) { - $term = $variables['term']; + /* @var \Drupal\taxonomy\TermInterface $term */ + $term = $variables['taxonomy_term']; $mapping = rdf_get_mapping('taxonomy_term', $term->bundle()); $bundle_mapping = $mapping->getPreparedBundleMapping(); $name_field_mapping = $mapping->getPreparedFieldMapping('name');