Previous Page
_exception()

Solar_View_Helper_Action
action()

Next Page
apiVersion()

action()

public string action ( string|Solar_Uri_Action $spec, string $text default NULL, string $attribs default NULL )

Returns an action anchor, or just an action href.

Parameters

  • (string|Solar_Uri_Action) $spec: The action specification.
  • (string) $text: A locale translation key.
  • (string) $attribs: Additional attributes for the anchor.

Returns

  • (string)

Description

Returns an action anchor, or just an action href.

If the $text link text is empty, will just return the href value, not an <a href="">...</a> anchor tag.