class ActionHelper implements ItemInterface

Traits

Constants

FEEDBACK_SUCCESS

FEEDBACK_ERROR

FEEDBACK_NOTE

FEEDBACK_WARNING

Methods

string
__toString()

No description

static ActionHelper
create(string $key, string $title)

Create Action

static ActionHelper
createFromOption(Option $actionOption)

No description

bool
execute()

Execute callback

I18nTokenHelper|null
getConfirmationQuestion()

No description

I18nTokenHelper|null
getFeedbackMessage(string|null $feedbackType)

No description

bool
getIsDownload()

No description

getOption()

No description

array
jsonSerialize()

Transforms the array structure of this option into a JSON string.

onExecuteCallback(callable $invokeFn)

No description

setConfirmationQuestion(I18nTokenHelper|null $confirmationText = null)

No description

setFeedbackMessage(I18nTokenHelper $feedbackMessage, string $feedbackType = self::FEEDBACK_SUCCESS)

No description

setIsDownload(bool $isDownload)

No description

array
toArray()

No description

Details

at line 115
string __toString()

No description

Return Value

string

at line 41
static ActionHelper create(string $key, string $title)

Create Action

Parameters

string $key
string $title

Return Value

ActionHelper

at line 51
static ActionHelper createFromOption(Option $actionOption)

No description

Parameters

Option $actionOption

Return Value

ActionHelper

at line 92
bool execute()

Execute callback

Return Value

bool

at line 64
I18nTokenHelper|null getConfirmationQuestion()

No description

Return Value

I18nTokenHelper|null

at line 73
I18nTokenHelper|null getFeedbackMessage(string|null $feedbackType)

No description

Parameters

string|null $feedbackType

Return Value

I18nTokenHelper|null

at line 83
bool getIsDownload()

No description

Return Value

bool

at line 122
Option getOption()

No description

Return Value

Option

in ItemTrait at line 13
array jsonSerialize()

Transforms the array structure of this option into a JSON string.

Return Value

array

at line 105
ActionHelper onExecuteCallback(callable $invokeFn)

No description

Parameters

callable $invokeFn

(Actionhelper $actionHelper)

Return Value

ActionHelper

at line 59
ActionHelper setConfirmationQuestion(I18nTokenHelper|null $confirmationText = null)

No description

Parameters

I18nTokenHelper|null $confirmationText

Return Value

ActionHelper

at line 68
ActionHelper setFeedbackMessage(I18nTokenHelper $feedbackMessage, string $feedbackType = self::FEEDBACK_SUCCESS)

No description

Parameters

I18nTokenHelper $feedbackMessage
string $feedbackType

Return Value

ActionHelper

at line 78
ActionHelper setIsDownload(bool $isDownload)

No description

Parameters

bool $isDownload

Return Value

ActionHelper

at line 111
array toArray()

No description

Return Value

array