public function CleantalkCheckCommentsForm::buildForm in Anti Spam by CleanTalk 9.1.x
Same name and namespace in other branches
- 8.4 src/Form/CleantalkCheckCommentsForm.php \Drupal\cleantalk\Form\CleantalkCheckCommentsForm::buildForm()
- 8.3 src/Form/CleantalkCheckCommentsForm.php \Drupal\cleantalk\Form\CleantalkCheckCommentsForm::buildForm()
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
- src/
Form/ CleantalkCheckCommentsForm.php, line 45
Class
Namespace
Drupal\cleantalk\FormCode
public function buildForm(array $form, \Drupal\Core\Form\FormStateInterface $form_state) {
\Drupal::messenger()
->addMessage($this
->t("Will be available soon!"), 'warning', false);
return $form;
}