diff --git a/core/modules/history/lib/Drupal/history/HistoryRepository.php b/core/modules/history/lib/Drupal/history/HistoryRepository.php index 8e1cbec..d0ae942 100644 --- a/core/modules/history/lib/Drupal/history/HistoryRepository.php +++ b/core/modules/history/lib/Drupal/history/HistoryRepository.php @@ -87,12 +87,12 @@ public function updateLastViewed(EntityInterface $entity, AccountInterface $acco ->key(array( 'uid' => $account->id(), 'entity_id' => $entity->id(), - 'entity_type' => $entity->entityType(), + 'entity_type' => $entity->getEntityTypeId(), )) ->fields(array('timestamp' => REQUEST_TIME)) ->execute(); // Update cached value. - $this->history[$entity->entityType()][$entity->id()] = REQUEST_TIME; + $this->history[$entity->getEntityTypeId()][$entity->id()] = REQUEST_TIME; } } @@ -124,10 +124,10 @@ public function deleteByUser(AccountInterface $account) { public function deleteByEntity(EntityInterface $entity) { $this->connection->delete('history') ->condition('entity_id', $entity->id()) - ->condition('entity_type', $entity->entityType()) + ->condition('entity_type', $entity->getEntityTypeId()) ->execute(); // Clean static cache. - unset($this->history[$entity->entityType()][$entity->id()]); + unset($this->history[$entity->getEntityTypeId()][$entity->id()]); } /**