diff --git a/src/Controller/GenericRevisionController.php b/src/Controller/GenericRevisionController.php index c1300fd..26df1c0 100644 --- a/src/Controller/GenericRevisionController.php +++ b/src/Controller/GenericRevisionController.php @@ -258,7 +258,7 @@ class GenericRevisionController extends EntityComparisonBase { // Second column. $row[] = array( 'data' => $this->l( - $this->t('< Previous difference'), $this->diff_route($entity, $vids[$i - 1], $left_vid) + $this->t('< Previous difference'), $this->diffRoute($entity, $vids[$i - 1], $left_vid) ), 'colspan' => 2, 'class' => 'rev-navigation', @@ -279,7 +279,7 @@ class GenericRevisionController extends EntityComparisonBase { // Forth column. $row[] = array( 'data' => $this->l( - $this->t('Next difference >'), $this->diff_route($entity, $right_vid, $vids[$i]) + $this->t('Next difference >'), $this->diffRoute($entity, $right_vid, $vids[$i]) ), 'colspan' => 2, 'class' => 'rev-navigation', @@ -305,11 +305,11 @@ class GenericRevisionController extends EntityComparisonBase { protected function buildMarkdownNavigation(EntityInterface $entity, $left_vid, $right_vid, $active_filter) { $links['raw'] = array( 'title' => $this->t('Standard'), - 'url' => $this->diff_route($entity, $left_vid, $right_vid), + 'url' => $this->diffRoute($entity, $left_vid, $right_vid), ); $links['raw_plain'] = array( 'title' => $this->t('Markdown'), - 'url' => $this->diff_route($entity, $left_vid, $right_vid, TRUE), + 'url' => $this->diffRoute($entity, $left_vid, $right_vid, TRUE), ); // Set as the first element the current filter. @@ -343,7 +343,7 @@ class GenericRevisionController extends EntityComparisonBase { * @return \Drupal\Core\Url * The URL object. */ - protected function diff_route(EntityInterface $entity, $left_vid, $right_vid, $raw_plain = FALSE) { + protected function diffRoute(EntityInterface $entity, $left_vid, $right_vid, $raw_plain = FALSE) { $entity_type_id = $entity->getEntityTypeId(); // @todo Remove the diff.revisions_diff route so we avoid adding extra cases. if ($entity->getEntityTypeId() == 'node') {