FormsComponent
abstract class FormsComponent extends Component implements HasForms (View source)
Traits
Properties
string[] | $mountedFormComponentActions | from HasFormComponentActions | |
array<string,array<string,mixed>> | $mountedFormComponentActionsArguments | from HasFormComponentActions | |
array<string,array<string,mixed>> | $mountedFormComponentActionsData | from HasFormComponentActions | |
string[] | $mountedFormComponentActionsComponents | from HasFormComponentActions | |
ComponentContainer | $mountedFormComponentActionForm | from HasFormComponentActions | |
array | $componentFileAttachments | from InteractsWithForms | |
protected Form> | $cachedForms | from InteractsWithForms | |
protected bool | $hasCachedForms | from InteractsWithForms | |
protected bool | $isCachingForms | from InteractsWithForms | |
protected bool | $hasFormsModalRendered | from InteractsWithForms | |
protected array<string,mixed> | $oldFormState | from InteractsWithForms |
Methods
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Details
mixed
callMountedFormComponentAction(array $arguments = [])
No description
mixed
mountFormComponentAction(string $component, string $name, array $arguments = [])
No description
protected void
cacheMountedFormComponentActionForm(Action|null $mountedAction = null)
No description
bool
mountedFormComponentActionShouldOpenModal(Action|null $mountedAction = null)
No description
bool
mountedFormComponentActionHasForm(Action|null $mountedAction = null)
No description
Action|null
getMountedFormComponentAction(int|null $actionNestingIndex = null)
No description
protected Form|null
getMountedFormComponentActionForm(int|null $actionNestingIndex = null, Action|null $mountedAction = null)
No description
Component|null
getMountedFormComponentActionComponent(int|null $actionNestingIndex = null)
No description
protected void
resetMountedFormComponentActionProperties()
No description
protected string|null
popMountedFormComponentAction()
No description
void
unmountFormComponentAction(bool $shouldCancelParentActions = true, bool $shouldCloseModal = true)
No description
protected void
closeFormComponentActionModal(bool $shouldCloseModal = true)
No description
protected void
openFormComponentActionModal()
No description
mixed
__get(string $property)
No description
void
dispatchFormEvent(mixed ...$args)
No description
void
fillFormDataForTesting(array $state = [])
No description
protected void
unsetMissingNumericArrayKeys(array $target, array $state)
No description
TemporaryUploadedFile|null
getFormComponentFileAttachment(string $statePath)
No description
string|null
getFormComponentFileAttachmentUrl(string $statePath)
No description
array
getFormSelectOptionLabels(string $statePath)
No description
string|null
getFormSelectOptionLabel(string $statePath)
No description
array
getFormSelectOptions(string $statePath)
No description
array
getFormSelectSearchResults(string $statePath, string $search)
No description
void
deleteUploadedFile(string $statePath, string $fileKey)
No description
array|null
getFormUploadedFiles(string $statePath)
No description
void
removeFormUploadedFile(string $statePath, string $fileKey)
No description
void
reorderFormUploadedFiles(string $statePath, array $fileKeys)
No description
array
validate($rules = null, array<string,string> $messages = [], array<string,string> $attributes = [])
No description
array<string,mixed>
validateOnly(string $field, array<string,array> $rules = null, array<string,string> $messages = [], array<string,string> $attributes = [], array<string,string> $dataOverrides = [])
No description
protected void
onValidationError(ValidationException $exception)
No description
protected array
prepareForValidation(array<string,mixed> $attributes)
No description
string|null
getFilamentTranslatableContentDriver()
No description
TranslatableContentDriver|null
makeFilamentTranslatableContentDriver()
No description
string|null
getActiveFormsLocale()
No description
void
updatingInteractsWithForms(string $statePath)
No description
mixed
getOldFormState(string $statePath)
No description
void
updatedInteractsWithForms(string $statePath)
No description
protected Form|null
cacheForm(string $name, Form|Closure|null $form)
No description
protected array
cacheForms()
No description
array
getTraitForms()
No description
protected bool
hasCachedForm(string $name)
No description
Form|null
getForm(string $name)
No description
array
getCachedForms()
No description
protected array
getForms()
No description
protected Model|string|null
getFormModel()
deprecated
deprecated
No description
protected array
getFormSchema()
deprecated
deprecated
No description
protected string|null
getFormContext()
deprecated
deprecated
No description
protected string|null
getFormStatePath()
deprecated
deprecated
No description
array
getRules()
No description
protected array
getValidationAttributes()
No description
protected Form
makeForm()
No description
bool
isCachingForms()
No description
Infolist
mountedFormComponentActionInfolist()
No description