community_builder-1.0.0-alpha1/src/Form/CommunitySettingsForm.php
src/Form/CommunitySettingsForm.php
<?php namespace Drupal\community_builder\Form; use Drupal\Core\Form\ConfigFormBase; use Drupal\Core\Form\FormStateInterface; /** * Class CommunitySettingsForm. */ class CommunitySettingsForm extends ConfigFormBase { /** * {@inheritdoc} */ public function getFormId() { return 'community_settings'; } /** * {@inheritdoc} */ protected function getEditableConfigNames() { return ['community_builder.settings']; } /** * {@inheritdoc} */ public function buildForm(array $form, FormStateInterface $form_state) { $form = parent::buildForm($form, $form_state); $config = $this->config('community_builder.settings'); return $form; } /** * {@inheritdoc} */ public function submitForm(array &$form, FormStateInterface $form_state) { parent::submitForm($form, $form_state); } }