MessageFormTrait
Tags
Table of Contents
Properties
Methods
- actionAdd() : void
- actionEdit() : void
- Edit of a post: the logged-in author, or a guest author with an edit session opened by the "Manage post" link from the insert e-mail ({@see MessageGuestEditTrait}).
- renderAdd() : void
- renderEdit() : void
- createComponentMessageForm() : MessageForm
- isMessageEditor() : bool
- The logged-in author edits their post; a guest post only with a valid edit session from the link.
Properties
$messageFormFactory
public
MessageFormFactory
$messageFormFactory
Attributes
- #[Inject]
Methods
actionAdd()
public
actionAdd(mixed $slug) : void
Parameters
- $slug : mixed
actionEdit()
Edit of a post: the logged-in author, or a guest author with an edit session opened by the "Manage post" link from the insert e-mail ({@see MessageGuestEditTrait}).
public
actionEdit(mixed $slug[, int|null $id = null ]) : void
Parameters
- $slug : mixed
- $id : int|null = null
renderAdd()
public
renderAdd(string|int $slug) : void
Parameters
- $slug : string|int
renderEdit()
public
renderEdit(mixed $slug[, int|null $id = null ]) : void
Parameters
- $slug : mixed
- $id : int|null = null
createComponentMessageForm()
protected
createComponentMessageForm() : MessageForm
Return values
MessageFormisMessageEditor()
The logged-in author edits their post; a guest post only with a valid edit session from the link.
private
isMessageEditor(Message $message) : bool
Parameters
- $message : Message