link_to_item¶
Summary¶
- link_to_item(string $text, array $props = Array, string $action = show, Item $item)¶
Return a link to an item.
Parameters: - $text (string) – HTML for the text of the link.
- $props (array) – Properties for the <a> tag.
- $action (string) – The page to link to (this will be the ‘show’ page almost always within the public theme).
- $item (Item) – Used for dependency injection testing or to use this function outside the context of a loop.
Returns: string HTML