You are here

public function Simple::buildForm in Siteimprove 8

Form constructor.

Build Siteimprove Domain plugin settings form.

Parameters

array $form: Build form for setting up plugin.

\Drupal\Core\Form\FormStateInterface $form_state: Form state.

string $plugin_definition: Plugin definition.

Overrides SiteimproveDomainBase::buildForm

File

src/Plugin/SiteimproveDomain/Simple.php, line 54

Class

Simple
Provides simple plugin instance of Siteimprove Domain settings.

Namespace

Drupal\siteimprove\Plugin\SiteimproveDomain

Code

public function buildForm(array &$form, FormStateInterface &$form_state, $plugin_definition) {
  parent::buildForm($form, $form_state, $plugin_definition);
  $form[$plugin_definition['id']]['description'] = [
    '#type' => 'markup',
    '#markup' => $this
      ->t("This plugin doesn't contain any settings."),
  ];
  return $form;
}