link_to_collection_for_item¶
Summary¶
- link_to_collection_for_item(string|null $text, array $props = Array, string $action = show)¶
Return 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