link() public method
Generates a hyperlink that links to the sort action to sort by the specified attribute. Based on the sort direction, the CSS class of the generated hyperlink will be appended with "asc" or "desc".
public string link ( $attribute, $options = [] )$attribute string
The attribute name by which the data should be sorted by. $options array
Additional HTML attributes for the hyperlink tag. There is one special attribute label which will be used as the label of the hyperli