diff --git a/src/Form/UwContentModerationForm.php b/src/Form/UwContentModerationForm.php new file mode 100644 index 0000000000000000000000000000000000000000..f730b4f42304f14f108aabde431a40dca184ae1c --- /dev/null +++ b/src/Form/UwContentModerationForm.php @@ -0,0 +1,39 @@ +<?php + +namespace Drupal\uw_cfg_common\Form; + +use Drupal\Core\Form\FormBase; +use Drupal\Core\Form\FormStateInterface; +use Drupal\uw_cfg_common\UwPermissions\UwPermissions; + +/** + * Form class for the content access form. + */ +class UwContentModerationForm extends FormBase { + + /** + * {@inheritdoc} + */ + public function getFormId() { + return 'uw_content_moderation_form'; + } + + /** + * {@inheritdoc} + */ + public function buildForm(array $form, FormStateInterface $form_state, $nid = NULL, $vid = NULL) { + + $form = []; + + return $form; + } + + /** + * {@inheritdoc} + */ + public function submitForm(array &$form, FormStateInterface $form_state) { + + // Set the message that the permissions have been saved. + $this->messenger()->addStatus($this->t('The changes have been saved.')); + } +} diff --git a/uw_cfg_common.routing.yml b/uw_cfg_common.routing.yml index e64d3636cd0feba0b8c7cde126ee7bc4cd3ca1da..c22fe91f9ccaa3d712f7c8f48cd618cc2e4dc70f 100644 --- a/uw_cfg_common.routing.yml +++ b/uw_cfg_common.routing.yml @@ -5,3 +5,10 @@ uw_contact_access.form: _form: '\Drupal\uw_cfg_common\Form\UwContentAccessForm' requirements: _permission: 'access content access form' +uw_content_moderation.form: + path: '/admin/uw-content-moderation/{nid}/{vid}' + defaults: + _title: 'Content moderation' + _form: '\Drupal\uw_cfg_common\Form\UwContentModerationForm' + requirements: + _permission: 'access content' \ No newline at end of file