/** * @param null|array $html_attributes * @return string */ public function getLink($html_attributes = null) { $tag = new TagHelper(); return $tag->link($this->object->name, $this->getUrl(), $html_attributes); }
/** * Gets an anchor tag with the post permalink as a href. * @param null|array $attr * @return string * @api */ public function getLink($attr = null) { $tag = new TagHelper(); return $tag->link($this->getTitle(), $this->getUrl(), $attr); }