You are here

function drupal_pre_render_link in Drupal 8

Same name and namespace in other branches
  1. 7 includes/common.inc \drupal_pre_render_link()

Pre-render callback: Renders a link into #markup.

Deprecated

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Render\Element\Link::preRenderLink().

File

core/includes/common.inc, line 771
Common functions that many Drupal modules will need to reference.

Code

function drupal_pre_render_link($element) {
  return Link::preRenderLink($element);
}