Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uw_cfg_common
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WCMS
uw_cfg_common
Merge requests
!8
Feature/istwcms 4166 publish unpublish
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Feature/istwcms 4166 publish unpublish
feature/ISTWCMS-4166-publish-unpublish
into
8.x-1.x
Overview
1
Commits
4
Pipelines
0
Changes
2
Merged
Eric Bremner
requested to merge
feature/ISTWCMS-4166-publish-unpublish
into
8.x-1.x
4 years ago
Overview
1
Commits
4
Pipelines
0
Changes
2
Expand
Classes to handle content moderation.
0
0
Merge request reports
Viewing commit
c5c8d7e0
Prev
Next
Show latest version
2 files
+
46
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
c5c8d7e0
ISTWCMS-4166: first attempting at adding the confirmation form for unpublishing
· c5c8d7e0
Eric Bremner
authored
4 years ago
src/Form/UwContentModerationForm.php
0 → 100644
+
39
−
0
Options
<?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.'
));
}
}
Loading