How do I add a link to a table row in a custom module?
This worked for me

use Drupal\Component\Render\FormattableMarkup;  
  $rows[] = array(

      array('data' =&gt; new FormattableMarkup('&lt;a href=":link"&gt;@name&lt;/a&gt;', 
        [':link' =&gt; $entry['link_url'], 
        '@name' =&gt; $entry['name']])
      ),