class LinkToFunction

Methods

string
__invoke($context, Model $model, string $icon = null, string $action = 'show', bool $linkAll = false, string $class = '', bool $forceText = false, string $content = '')

Get a link literal to a Model

static 
get()

No description

Details

at line line 21
string __invoke($context, Model $model, string $icon = null, string $action = 'show', bool $linkAll = false, string $class = '', bool $forceText = false, string $content = '')

Get a link literal to a Model

Parameters

$context
Model $model The model we want to link to
string $icon A font awesome icon identifier to show instead of text
string $action The action to link to (e.g show or edit)
bool $linkAll Whether to link to inactive or deleted models
string $class The CSS class(es) to apply to the link
bool $forceText Whether to show both the icon and text
string $content Override the content that will automatically be used

Return Value

string The HTML link

at line line 139
static get()