You are here

public function SocialEventManagersSettings::buildForm in Open Social 8

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_event/modules/social_event_managers/src/Form/SocialEventManagersSettings.php \Drupal\social_event_managers\Form\SocialEventManagersSettings::buildForm()
  2. 8.2 modules/social_features/social_event/modules/social_event_managers/src/Form/SocialEventManagersSettings.php \Drupal\social_event_managers\Form\SocialEventManagersSettings::buildForm()
  3. 8.3 modules/social_features/social_event/modules/social_event_managers/src/Form/SocialEventManagersSettings.php \Drupal\social_event_managers\Form\SocialEventManagersSettings::buildForm()
  4. 8.4 modules/social_features/social_event/modules/social_event_managers/src/Form/SocialEventManagersSettings.php \Drupal\social_event_managers\Form\SocialEventManagersSettings::buildForm()
  5. 8.5 modules/social_features/social_event/modules/social_event_managers/src/Form/SocialEventManagersSettings.php \Drupal\social_event_managers\Form\SocialEventManagersSettings::buildForm()
  6. 8.6 modules/social_features/social_event/modules/social_event_managers/src/Form/SocialEventManagersSettings.php \Drupal\social_event_managers\Form\SocialEventManagersSettings::buildForm()
  7. 8.7 modules/social_features/social_event/modules/social_event_managers/src/Form/SocialEventManagersSettings.php \Drupal\social_event_managers\Form\SocialEventManagersSettings::buildForm()
  8. 8.8 modules/social_features/social_event/modules/social_event_managers/src/Form/SocialEventManagersSettings.php \Drupal\social_event_managers\Form\SocialEventManagersSettings::buildForm()
  9. 10.3.x modules/social_features/social_event/modules/social_event_managers/src/Form/SocialEventManagersSettings.php \Drupal\social_event_managers\Form\SocialEventManagersSettings::buildForm()
  10. 10.0.x modules/social_features/social_event/modules/social_event_managers/src/Form/SocialEventManagersSettings.php \Drupal\social_event_managers\Form\SocialEventManagersSettings::buildForm()
  11. 10.1.x modules/social_features/social_event/modules/social_event_managers/src/Form/SocialEventManagersSettings.php \Drupal\social_event_managers\Form\SocialEventManagersSettings::buildForm()
  12. 10.2.x modules/social_features/social_event/modules/social_event_managers/src/Form/SocialEventManagersSettings.php \Drupal\social_event_managers\Form\SocialEventManagersSettings::buildForm()

Form constructor.

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Return value

array The form structure.

Overrides ConfigFormBase::buildForm

File

modules/social_features/social_event/modules/social_event_managers/src/Form/SocialEventManagersSettings.php, line 34

Class

SocialEventManagersSettings
Class SocialEventTypeSettings.

Namespace

Drupal\social_event_managers\Form

Code

public function buildForm(array $form, FormStateInterface $form_state) {
  $config = $this
    ->config('social_event_managers.settings');
  $form['author_as_manager'] = [
    '#type' => 'checkbox',
    '#title' => $this
      ->t('Author as event organiser'),
    '#description' => $this
      ->t('Set author of event as event organiser automatically.'),
    '#default_value' => $config
      ->get('author_as_manager'),
  ];
  return parent::buildForm($form, $form_state);
}