Is it possible to set any attributes (such as a class) of the `a` tag when using `getLink()`?
No, getLink outputs a very simple version of the link.

If you want something more complex, you'll need to build it manually...

&lt;a href="{{ foo.url }}" class="bar"&gt;{{ foo.title }}&lt;/a&gt;