Skip to content
Snippets Groups Projects
Commit 73c0373e authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-4208: adding constant for saved node status

parent 1a03da1e
No related branches found
No related tags found
1 merge request!19Feature/istwcms 4208 ebremner unpublishing
......@@ -162,9 +162,9 @@ class UwContentModerationForm extends ConfirmFormBase {
// Adding the redirect back to the node.
$form_state->setRedirectUrl($url);
// If the saved status is 2, means that we successfully changed
// If the saved status is SAVED_UPDATED (2), means that we successfully changed
// the moderation state so set the message appropriately.
if ($saved_status == 2) {
if ($saved_status == SAVED_UPDATED) {
if ($this->status) {
$this->messenger()->addStatus($this->t('You have successfully unpublished this content.'));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment