W3cubDocs

/Drupal 8

function drupal_pre_render_link

drupal_pre_render_link($element)

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

Deprecated

in Drupal 8.x, will be removed before Drupal 9.0. Use \Drupal\Core\Render\Element\Link::preRenderLink().

File

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

Code

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!includes!common.inc/function/drupal_pre_render_link/8.1.x