Answers for "drupal render element link class"

0

drupal 8 type link

use Drupal\Core\Url;

$rendable_link = [
  '#type' => 'link',
  '#title' => $this->t('Link title'),
  '#url' => Url::fromRoute('YOUR_ROUTE'),
];
Posted by: Guest on October-15-2020

Code answers related to "drupal render element link class"

Code answers related to "Javascript"

Browse Popular Code Answers by Language