You are here

public function NotificationsWidgetLoggerSettingsForm::buildForm in Notifications widget 8

Build form.

Overrides ConfigFormBase::buildForm

File

src/Form/NotificationsWidgetLoggerSettingsForm.php, line 92

Class

NotificationsWidgetLoggerSettingsForm
Provides settings for Activity tracking module.

Namespace

Drupal\notifications_widget\Form

Code

public function buildForm(array $form, FormStateInterface $form_state) {
  $config = $this
    ->config('notifications_widget.settings');
  $form['excluded_entities'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Exclude Entities (comma seperated)'),
    '#description' => $this
      ->t('Exclude the notification entities for excluding'),
    '#default_value' => $config
      ->get('excluded_entities'),
  ];
  $form['additional_entity_type'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Additional Entity Types (comma seperated)'),
    '#description' => $this
      ->t('Provide the Entity Types to enable and configure notifications'),
    '#default_value' => $config
      ->get('additional_entity_type'),
  ];
  return parent::buildForm($form, $form_state);
}