link_to_collection_for_item
— Get a link to the collection to which the item belongs.
Summary
- link_to_collection_for_item($text = null, $props = array(), $action = 'show')
Get a link to the collection to which the item belongs.
The default text displayed for this link will be the name of the collection, but that can be changed by passing a string argument.
- Parameters:
$text (
string|null
) – Text for the link.$props (
array
) – HTML attributes for the <a> tag.$action (
string
) – ‘show’ by default.
- Returns:
string