ModalTrait
Modal display of the recommendation form.
Requires in the host class: $this->modalRegistry, $this->eventDispatcher,
$this->translator, $this->translatorDomain, $this->subject, getModalTarget().
Table of Contents
Methods
- handleShowRecommendModal() : void
- updateModalContent() : void
- createFormContent() : string
- createModalEvent() : ModalWindowEvent
- createSuccessContent() : string
Methods
handleShowRecommendModal()
public
handleShowRecommendModal() : void
updateModalContent()
protected
updateModalContent(string $content) : void
Parameters
- $content : string
createFormContent()
private
createFormContent() : string
Return values
stringcreateModalEvent()
private
createModalEvent(string $content[, array<string, mixed> $extraOptions = [] ]) : ModalWindowEvent
Parameters
- $content : string
- $extraOptions : array<string, mixed> = []
Return values
ModalWindowEventcreateSuccessContent()
private
createSuccessContent() : string