3 namespace Drupal\entity\Revision;
5 use Drupal\Core\Entity\RevisionableContentEntityBase as BaseRevisionableContentEntityBase;
8 * Improves the url route handling of core's revisionable content entity base.
10 abstract class RevisionableContentEntityBase extends BaseRevisionableContentEntityBase {
15 protected function urlRouteParameters($rel) {
16 $uri_route_parameters = parent::urlRouteParameters($rel);
18 if (strpos($this->getEntityType()->getLinkTemplate($rel), $this->getEntityTypeId() . '_revision') !== FALSE) {
19 $uri_route_parameters[$this->getEntityTypeId() . '_revision'] = $this->getRevisionId();
22 return $uri_route_parameters;