You are here

public function CleantalkCheckCommentsForm::buildForm in Anti Spam by CleanTalk 9.1.x

Same name and namespace in other branches
  1. 8.4 src/Form/CleantalkCheckCommentsForm.php \Drupal\cleantalk\Form\CleantalkCheckCommentsForm::buildForm()
  2. 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

CleantalkCheckCommentsForm

Namespace

Drupal\cleantalk\Form

Code

public function buildForm(array $form, \Drupal\Core\Form\FormStateInterface $form_state) {
  \Drupal::messenger()
    ->addMessage($this
    ->t("Will be available soon!"), 'warning', false);
  return $form;
}