You are here

public function DomainAccess::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

siteimprove_domain_access/src/Plugin/SiteimproveDomain/DomainAccess.php, line 21

Class

DomainAccess
Provides simple plugin instance of Siteimprove Domain settings.

Namespace

Drupal\siteimprove_domain_access\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. Domain names are automatically fetched from Domain Access."),
  ];
  return $form;
}