CoolCMS API

ModalTrait

Requires in the host class: - $this->modalRegistry (ModalRegistry), $this->eventDispatcher (EventDispatcher) - $this->translator, $this->translatorDomain - getModalTarget(): string

Table of Contents

Methods

handleShowResponseModal()  : void
updateModalContent()  : void
createFormContent()  : string
createModalEvent()  : ModalWindowEvent
createSuccessContent()  : string

Methods

handleShowResponseModal()

public handleShowResponseModal() : void

updateModalContent()

protected updateModalContent(string $content) : void
Parameters
$content : string

createFormContent()

private createFormContent() : string
Return values
string

createModalEvent()

private createModalEvent(string $content[, array<string, mixed> $extraOptions = [] ]) : ModalWindowEvent
Parameters
$content : string
$extraOptions : array<string, mixed> = []
Return values
ModalWindowEvent

createSuccessContent()

private createSuccessContent() : string
Return values
string
On this page

Search results