Upgraded imagemagick and manually altered pdf to image module to handle changes....
[yaffs-website] / web / modules / contrib / entity / src / Revision / RevisionableContentEntityBase.php
1 <?php
2
3 namespace Drupal\entity\Revision;
4
5 use Drupal\Core\Entity\RevisionableContentEntityBase as BaseRevisionableContentEntityBase;
6
7 /**
8  * Improves the url route handling of core's revisionable content entity base.
9  */
10 abstract class RevisionableContentEntityBase extends BaseRevisionableContentEntityBase {
11
12   /**
13    * {@inheritdoc}
14    */
15   protected function urlRouteParameters($rel) {
16     $uri_route_parameters = parent::urlRouteParameters($rel);
17
18     if (strpos($this->getEntityType()->getLinkTemplate($rel), $this->getEntityTypeId() . '_revision') !== FALSE) {
19       $uri_route_parameters[$this->getEntityTypeId() . '_revision'] = $this->getRevisionId();
20     }
21
22     return $uri_route_parameters;
23   }
24
25 }