class CustomAction

Properties summary

Type Property Description
protected string $identifier
protected string $display
protected mixed $callable
protected array $params
protected array $permissions
protected bool $active
protected bool $allowSamePage
protected bool $preferIsolation

Methods summary

Return Type Method Name Description
static CustomAction factory(string $identifier, string $display, $callable, array $params = [], array $permissions = [], bool $active = true, bool $allowSamePage = false, bool $preferIsolation = false) Initialise the CustomAction object providing the data that will be used on output.
string getIdentifier() Get the identifier for the CustomAction object.
CustomAction setIdentifier(string $identifier) Set the identifier for the CustomAction object.
string getDisplay() Get the display for the CustomAction object.
CustomAction setDisplay(string $display) Set the display for the CustomAction object.
array invokeCallable() Invoke the callable function for the CustomAction object.
CustomAction setCallable(string|callable $callable) Set the callable function for the CustomAction object.
CustomAction setParams(array $params) Set the params for the CustomAction object.
array getPermissions() Get the permissions for the CustomAction object.
CustomAction setPermissions(array $permissions) Set the permissions for the CustomAction object.
CustomAction setActive(bool $active) -
bool isActive() -
CustomAction setAllowSamePage(bool $allowSamePage) -
bool isAllowSamePage() -
CustomAction setPreferIsolation(bool $preferIsolation) -
bool isPreferIsolation() -

Details

static CustomAction factory (string $identifier, string $display, $callable, array $params = [], array $permissions = [], bool $active = true, bool $allowSamePage = false, bool $preferIsolation = false)

Initialise the CustomAction object providing the data that will be used on output.

Parameters

string $identifier
string $display
$callable
array $params
array $permissions
bool $active
bool $allowSamePage
bool $preferIsolation

Return Value

CustomAction

string getIdentifier ()

Get the identifier for the CustomAction object.

Return Value

string

protected CustomAction setIdentifier (string $identifier)

Set the identifier for the CustomAction object.

Parameters

string $identifier

Return Value

CustomAction

string getDisplay ()

Get the display for the CustomAction object.

Return Value

string

protected CustomAction setDisplay (string $display)

Set the display for the CustomAction object.

Parameters

string $display

Return Value

CustomAction

array invokeCallable ()

Invoke the callable function for the CustomAction object.

Return Value

array

protected CustomAction setCallable (string|callable $callable)

Set the callable function for the CustomAction object.

Parameters

string|callable $callable

Return Value

CustomAction

protected CustomAction setParams (array $params)

Set the params for the CustomAction object.

Parameters

array $params

Return Value

CustomAction

array getPermissions ()

Get the permissions for the CustomAction object.

Return Value

array

protected CustomAction setPermissions (array $permissions)

Set the permissions for the CustomAction object.

Parameters

array $permissions

Return Value

CustomAction

protected CustomAction setActive (bool $active)

Parameters

bool $active

Return Value

CustomAction

bool isActive ()

Return Value

bool

protected CustomAction setAllowSamePage (bool $allowSamePage)

Parameters

bool $allowSamePage

Return Value

CustomAction

bool isAllowSamePage ()

Return Value

bool

protected CustomAction setPreferIsolation (bool $preferIsolation)

Parameters

bool $preferIsolation

Return Value

CustomAction

bool isPreferIsolation ()

Return Value

bool