Commit 07525d78 authored by alexpott's avatar alexpott

Issue #2080841 by pwolanin: Fixed l() method on \Drupal needs to be static.

parent 1baad8a5
......@@ -493,7 +493,7 @@ public static function linkGenerator() {
* @see \Drupal\Core\Routing\UrlGeneratorInterface::generateFromRoute()
* @see \Drupal\Core\Utility\LinkGeneratorInterface::generate()
*/
public function l($text, $route_name, array $parameters = array(), array $options = array()) {
public static function l($text, $route_name, array $parameters = array(), array $options = array()) {
return static::$container->get('link_generator')->generate($text, $route_name, $parameters, $options);
}
......
......@@ -99,7 +99,7 @@ function seven_custom_block_add_list($variables) {
$content = '<span class="label">' . check_plain($type->label()) . '</span>';
$content .= '<div class="description">' . filter_xss_admin($type->description) . '</div>';
$options['html'] = TRUE;
$output .= l($content, 'block/add/' . $type->id(), $options);
$output .= Drupal::l($content, 'custom_block_add_form' , array('custom_block_type' => $type->id()), $options);
$output .= '</li>';
}
$output .= '</ul>';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment