Contents

Tailor\Components\SubmissionComponent

Overview

SubmissionComponent handles user-submitted content via a Tailor blueprint

Extends
Implements
  • Larajax\Contracts\ViewComponentInterface
  • October\Contracts\Twig\CallsAnyMethod
  • Stringable

Public Properties

There are no public properties in the class.

Show inherited public properties

Inherited Public Properties

Protected Properties

There are no protected properties in the class.

Show inherited protected properties

Inherited Protected Properties


Public Methods

public componentDetails()

public componentDetails(): void

public defineProperties()

public defineProperties(): void

public formCoerceRelationValues()

public formCoerceRelationValues($model, $data, $allowedFields): array 

formCoerceRelationValues applies relation-backed values via the submission decoder and sanitizes the remaining scalar values

public formCreateModel()

public formCreateModel(): void

formCreateModel returns a new SubmissionRecord wired to the blueprint

public formFindPartialModel()

public formFindPartialModel($model, $recordId): void

formFindPartialModel only resolves records still marked as partial submissions

public formGetFieldConfig()

public formGetFieldConfig(): array 

formGetFieldConfig derives field definitions from the blueprint fieldset

public formGetRejectedTypes()

public formGetRejectedTypes(): array 

formGetRejectedTypes accepts relation-backed types since the submission decoder guards them

public formGetSessionKey()

public formGetSessionKey(): string 

formGetSessionKey scopes partial submission tracking to the blueprint

public formMarkComplete()

public formMarkComplete($model): void 

formMarkComplete clears the incomplete submission flag

public formMarkPartial()

public formMarkPartial($model): void 

formMarkPartial flags the record as an incomplete submission

public getHandleOptions()

public getHandleOptions(): void

public init()

public init(): void

init attaches the wizard or standard form behavior based on the wizard property

public onFormGoto()

public onFormGoto(): void

onFormGoto delegates back navigation to the behavior, no validation required

public onFormStep()

public onFormStep(): void

onFormStep adds spam protection before delegating the forward step to the behavior

public onFormSubmit()

public onFormSubmit(): void

onFormSubmit adds spam protection before delegating to the behavior

Show inherited public methods

Inherited Public Methods

Protected Methods

protected checkHoneypot()

protected checkHoneypot(): void 

checkHoneypot rejects submissions that fill the hidden honeypot field

protected getBlueprintUuid()

protected getBlueprintUuid(): string 

getBlueprintUuid resolves the handle to a blueprint UUID

protected getFormBehavior()

protected getFormBehavior(

): Cms\Behaviors\FormComponent|\Cms\Behaviors\WizardComponent 

getFormBehavior returns the form behavior attached to this component

Show inherited protected methods

Inherited Protected Methods