Drupal : Link mit HTML Markup

Submitted by Gast (nicht überprüft) on Mo, 12/12/2022 - 13:14

use Markup in Drupal

use Drupal\Core\Render\Markup;

PHP Code

$html_code = " <p> &#x2715; </p> ";
$link_with_html = Link::createFromRoute( Markup::create( $html_code ), 'my_module')->toString();

 

Neuen Kommentar schreiben

This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.