You are here

CleantalkCheckCommentsForm.php in Anti Spam by CleanTalk 9.1.x

File

src/Form/CleantalkCheckCommentsForm.php
View source
<?php

namespace Drupal\cleantalk\Form;


// Autoload
require_once dirname(__FILE__) . '/../lib/autoload.php';
use Drupal\Core\Form\FormBase;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Render\Element;
use Drupal\user\Entity\User;
use Cleantalk\Common\API as CleantalkAPI;
class CleantalkCheckCommentsForm extends FormBase {

  /**
   * {@inheritdoc}
   */
  public function getFormId() {
    return 'cleantalk_check_comments_form';
  }

  /**
   * {@inheritdoc}
   */
  public function submitForm(array &$form, FormStateInterface $form_state) {
    parent::submitForm($form, $form_state);
  }

  /**
   * {@inheritdoc}
   */
  protected function getEditableConfigNames() {
    return [
      'cleantalk.check_comments',
    ];
  }
  public function buildForm(array $form, \Drupal\Core\Form\FormStateInterface $form_state) {
    \Drupal::messenger()
      ->addMessage($this
      ->t("Will be available soon!"), 'warning', false);
    return $form;
  }

}

Classes