O365TeamsSendMessageForm
extends FormBase
in package
Provides an Office 365 - Teams integration form.
Table of Contents
- $request : Request|null
- The current request.
- $sendMessageService : O365TeamsSendMessageService
- Our custom message sending service.
- __construct() : mixed
- The form class constructor.
- buildForm() : mixed
- {@inheritdoc}
- create() : mixed
- {@inheritdoc}
- getFormId() : mixed
- {@inheritdoc}
- submitForm() : mixed
- {@inheritdoc}
Properties
$request
The current request.
protected
Request|null
$request
$sendMessageService
Our custom message sending service.
protected
O365TeamsSendMessageService
$sendMessageService
Methods
__construct()
The form class constructor.
public
__construct(O365TeamsSendMessageService $sendMessageService, RequestStack $request) : mixed
Parameters
- $sendMessageService : O365TeamsSendMessageService
-
Our custom message sending service.
- $request : RequestStack
-
The current request stack.
Return values
mixed —buildForm()
{@inheritdoc}
public
buildForm(array<string|int, mixed> $form, FormStateInterface $form_state) : mixed
Parameters
- $form : array<string|int, mixed>
- $form_state : FormStateInterface
Return values
mixed —create()
{@inheritdoc}
public
static create(ContainerInterface $container) : mixed
Parameters
- $container : ContainerInterface
Return values
mixed —getFormId()
{@inheritdoc}
public
getFormId() : mixed
Return values
mixed —submitForm()
{@inheritdoc}
public
submitForm(array<string|int, mixed> &$form, FormStateInterface $form_state) : mixed
Parameters
- $form : array<string|int, mixed>
- $form_state : FormStateInterface