diff --git a/.buildpath b/.buildpath new file mode 100644 index 00000000..8bcb4b5f --- /dev/null +++ b/.buildpath @@ -0,0 +1,5 @@ + + + + + diff --git a/.project b/.project new file mode 100644 index 00000000..3b07509b --- /dev/null +++ b/.project @@ -0,0 +1,22 @@ + + + proj-posse + + + + + + org.eclipse.wst.validation.validationbuilder + + + + + org.eclipse.dltk.core.scriptbuilder + + + + + + org.eclipse.php.core.PHPNature + + diff --git a/.settings/org.eclipse.wst.validation.prefs b/.settings/org.eclipse.wst.validation.prefs new file mode 100644 index 00000000..39a5ef64 --- /dev/null +++ b/.settings/org.eclipse.wst.validation.prefs @@ -0,0 +1,2 @@ +disabled=06vendor +eclipse.preferences.version=1 diff --git a/web/.buildpath b/web/.buildpath new file mode 100644 index 00000000..8bcb4b5f --- /dev/null +++ b/web/.buildpath @@ -0,0 +1,5 @@ + + + + + diff --git a/web/.project b/web/.project new file mode 100644 index 00000000..e202314e --- /dev/null +++ b/web/.project @@ -0,0 +1,22 @@ + + + web + + + + + + org.eclipse.wst.validation.validationbuilder + + + + + org.eclipse.dltk.core.scriptbuilder + + + + + + org.eclipse.php.core.PHPNature + + diff --git a/web/modules/custom/posse_dc/config/install/posse_dc.possesettings.yml b/web/modules/custom/posse_dc/config/install/posse_dc.possesettings.yml new file mode 100644 index 00000000..8d08595e --- /dev/null +++ b/web/modules/custom/posse_dc/config/install/posse_dc.possesettings.yml @@ -0,0 +1 @@ +posse_dc: diff --git a/web/modules/custom/posse_dc/posse_dc.routing.yml b/web/modules/custom/posse_dc/posse_dc.routing.yml new file mode 100644 index 00000000..db2d52a9 --- /dev/null +++ b/web/modules/custom/posse_dc/posse_dc.routing.yml @@ -0,0 +1,11 @@ + +posse_dc.posse_settings_form: + path: '/admin/config/posse_dc/possesettings' + defaults: + _form: '\Drupal\posse_dc\Form\PosseSettingsForm' + _title: 'PosseSettingsForm' + requirements: + _permission: 'access administration pages' + options: + _admin_route: TRUE + diff --git a/web/modules/custom/posse_dc/src/Form/PosseSettingsForm.php b/web/modules/custom/posse_dc/src/Form/PosseSettingsForm.php new file mode 100644 index 00000000..12287147 --- /dev/null +++ b/web/modules/custom/posse_dc/src/Form/PosseSettingsForm.php @@ -0,0 +1,54 @@ +config('posse_dc.possesettings'); + return parent::buildForm($form, $form_state); + } + + /** + * {@inheritdoc} + */ + public function validateForm(array &$form, FormStateInterface $form_state) { + parent::validateForm($form, $form_state); + } + + /** + * {@inheritdoc} + */ + public function submitForm(array &$form, FormStateInterface $form_state) { + parent::submitForm($form, $form_state); + + $this->config('posse_dc.possesettings') + ->save(); + } + +}