public function Single::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/ Single.php, line 56
Class
- Single
- Provides simple plugin instance of Siteimprove Domain settings.
Namespace
Drupal\siteimprove\Plugin\SiteimproveDomainCode
public function buildForm(array &$form, FormStateInterface &$form_state, $plugin_definition) {
parent::buildForm($form, $form_state, $plugin_definition);
$form[$plugin_definition['id']]['single_domain'] = [
'#type' => 'textfield',
'#description' => $this
->t('Input your domain name. If you leave out http:// or https://, the scheme will inherit the scheme of the web request.'),
'#default_value' => $this
->config('siteimprove.domain.single.settings')
->get('domain'),
];
return $form;
}