+ /**
+ * Gets the URI elements of the entity.
+ *
+ * @param \Drupal\Core\Entity\EntityInterface $entity
+ * The entity object.
+ *
+ * @return \Drupal\Core\Url
+ * The URI elements of the entity.
+ */
+ protected function getEntityUrl(EntityInterface $entity) {
+ // For the default revision this falls back to 'canonical'.
+ return $entity->toUrl('revision');
+ }
+