Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

drupal 8 link render array

$url = Url::fromRoute('entity.node.edit_form', array('node' => NID));
$link = [
  '#type' => 'link',
  '#url' => $url,
  '#title' => t('This link was rendered')
];
 
PREVIOUS NEXT
Tagged: #drupal #link #render #array
ADD COMMENT
Topic
Name
1+6 =