public function SmsBlastForm::buildForm in SMS Framework 8
Form constructor.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
array The form structure.
Overrides FormInterface::buildForm
File
- modules/
sms_blast/ src/ SmsBlastForm.php, line 65  
Class
- SmsBlastForm
 - Defines a form for sending mass messages.
 
Namespace
Drupal\sms_blastCode
public function buildForm(array $form, FormStateInterface $form_state) {
  $form['message'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Message'),
    '#cols' => 60,
    '#rows' => 5,
  ];
  $form['submit'] = [
    '#type' => 'submit',
    '#value' => $this
      ->t('Send'),
  ];
  return $form;
}