tp TouchPointWP Interfaces actionButtons - TenthPres/TouchPoint-WP GitHub Wiki

tp\TouchPointWP\Interfaces\actionButtons

This is a base interface for classes that make action buttons available for a given object.


  • Full name: \tp\TouchPointWP\Interfaces\actionButtons

Methods

getActionButtons

public getActionButtons(string|null $context = null, string $btnClass = "", bool $withTouchPointLink = true, bool $absoluteLinks = false): \tp\TouchPointWP\Utilities\StringableArray

Parameters:

Parameter Type Description
$context string|null A string that gives filters some context for where the request is coming from
$btnClass string HTML class names to put into the buttons/links
$withTouchPointLink bool Whether to include a link to the item within TouchPoint.
$absoluteLinks bool Set true to make the links absolute, so they work from apps or emails.