Is it possible to set any attributes (such as a class) of the `a` tag when using `getLink()`? This code: 

{{ foo.getLink() }}


Outputs this:

&lt;a href="URL_HERE"&gt;NAME_OF_PAGE&lt;/a&gt;


What I really want is something like:

&lt;a href="URL_HERE" class="bar"&gt;NAME_OF_PAGE&lt;/a&gt;


Is it possible to set "class" and/or other html attributes when using Craft CMS Entry Property 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;