link_to_collection
— Get a link to a collection.
Summary
- link_to_collection($text = null, $props = array(), $action = 'show', $collectionObj = null)
Get a link to a collection.
The only differences from link_to() are that this function will automatically use the “current” collection, and will use the collection title as the link text.
- Parameters:
$text (
string
) – text to use for the title of the collection. Default behavior is to use the name of the collection.$props (
array
) – Set of attributes to use for the link.$action (
array
) – The action to link to for the collection.$collectionObj (
array
) – Collection record can be passed to this to override the collection object retrieved by get_current_record().
- Returns:
string