- 🇩🇪Germany rhiss
<a href="https://www.mydomain.com" class="use-ajax" data-dialog-type="modal" data-dialog-options="{"width":"700px"}"> <i class="fa fa-book" aria-hidden="true"></i> Benutzerhandbuch</a>
$build['open_in_modal'] = [ '#type' => 'link', '#url' =>Url::fromRoute('my-example-route'), '#title' => t('Open in fullscreen'), '#attributes' => [ 'class' => ['use-ajax'], 'data-dialog-type' => 'full_screen', ], '#attached' => [ 'library' => ['core/drupal.dialog.ajax'], ], ];