trait InteractsWithActions (View source)

Properties

string[] $mountedActions
array<string,array<string,mixed>> $mountedActionsArguments
array<string,array<string,mixed>> $mountedActionsData
mixed $defaultAction
mixed $defaultActionArguments
protected Action> $cachedActions
protected bool $hasActionsModalRendered
Form $mountedActionForm

Methods

mixed
callMountedAction(array $arguments = [])

No description

void
afterActionCalled()

No description

mixed
mountAction(string $name, array $arguments = [])

No description

void
replaceMountedAction(string $name, array $arguments = [])

No description

bool
mountedActionShouldOpenModal(Action|null $mountedAction = null)

No description

bool
mountedActionHasForm(Action|null $mountedAction = null)

No description

cacheAction(Action $action)

No description

void
mergeCachedActions(array $actions)

No description

void
configureAction(Action $action)

No description

Action|null
getMountedAction()

No description

array
getInteractsWithActionsForms()

No description

Form|null
getMountedActionForm(Action|null $mountedAction = null)

No description

Model|string|null
getMountedActionFormModel()

No description

Action|null
getAction(string|array $name)

No description

Action|null
getMountableModalActionFromAction(Action $action, array $modalActionNames)

No description

string|null
popMountedAction()

No description

void
resetMountedActionProperties()

No description

void
unmountAction(bool $shouldCancelParentActions = true, bool $shouldCloseModal = true)

No description

void
cacheMountedActionForm(Action|null $mountedAction = null)

No description

void
closeActionModal()

No description

void
openActionModal()

No description

string|null
getActiveActionsLocale()

No description

mountedActionInfolist()

No description

Details

mixed callMountedAction(array $arguments = [])

No description

Parameters

array $arguments

Return Value

mixed

protected void afterActionCalled()

No description

Return Value

void

mixed mountAction(string $name, array $arguments = [])

No description

Parameters

string $name
array $arguments

Return Value

mixed

void replaceMountedAction(string $name, array $arguments = [])

No description

Parameters

string $name
array $arguments

Return Value

void

bool mountedActionShouldOpenModal(Action|null $mountedAction = null)

No description

Parameters

Action|null $mountedAction

Return Value

bool

bool mountedActionHasForm(Action|null $mountedAction = null)

No description

Parameters

Action|null $mountedAction

Return Value

bool

Action cacheAction(Action $action)

No description

Parameters

Action $action

Return Value

Action

protected void mergeCachedActions(array $actions)

No description

Parameters

array $actions

Return Value

void

protected void configureAction(Action $action)

No description

Parameters

Action $action

Return Value

void

Action|null getMountedAction()

No description

Return Value

Action|null

protected array getInteractsWithActionsForms()

No description

Return Value

array

Form|null getMountedActionForm(Action|null $mountedAction = null)

No description

Parameters

Action|null $mountedAction

Return Value

Form|null

protected Model|string|null getMountedActionFormModel()

No description

Return Value

Model|string|null

Action|null getAction(string|array $name)

No description

Parameters

string|array $name

Return Value

Action|null

protected Action|null getMountableModalActionFromAction(Action $action, array $modalActionNames)

No description

Parameters

Action $action
array $modalActionNames

Return Value

Action|null

protected string|null popMountedAction()

No description

Return Value

string|null

protected void resetMountedActionProperties()

No description

Return Value

void

void unmountAction(bool $shouldCancelParentActions = true, bool $shouldCloseModal = true)

No description

Parameters

bool $shouldCancelParentActions
bool $shouldCloseModal

Return Value

void

protected void cacheMountedActionForm(Action|null $mountedAction = null)

No description

Parameters

Action|null $mountedAction

Return Value

void

protected void closeActionModal()

No description

Return Value

void

protected void openActionModal()

No description

Return Value

void

string|null getActiveActionsLocale()

No description

Return Value

string|null

Infolist mountedActionInfolist()

No description

Return Value

Infolist