commit 9e690efd19dc854fce0a28ad3a1cc6dffcc235c2 Author: Miro Dietiker Date: Sun May 18 12:50:57 2014 +0200 Add #path and #href support for links. diff --git a/core/includes/common.inc b/core/includes/common.inc index 07ec3cb..99d3a9d 100644 --- a/core/includes/common.inc +++ b/core/includes/common.inc @@ -2949,6 +2949,9 @@ function drupal_pre_render_link($element) { $element['#route_parameters'] = empty($element['#route_parameters']) ? array() : $element['#route_parameters']; $element['#markup'] = \Drupal::linkGenerator()->generate($element['#title'], $element['#route_name'], $element['#route_parameters'], $element['#options']); } + else if(isset($element['#path'])) { + $element['#markup'] = l($element['#title'], $element['#path'], $element['#options']); + } else { $element['#markup'] = l($element['#title'], $element['#href'], $element['#options']); }