Closed (fixed)
Project:
Publish Content
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
21 Oct 2019 at 15:20 UTC
Updated:
29 Jun 2020 at 19:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
sumit-k commentedComment #3
sumit-k commentedComment #4
rodrigoaguileraThis can be a nice addition to the module. A couple of things
No need to use negation, just invert the ternary assignment.
Those two strings need to be translatable too
This function is deprecated, better use the messenger service
https://www.drupal.org/node/2774931
Comment #5
deepak goyal commentedComment #6
deepak goyal commentedHi @rodrigoaguilera
Created new patch please review.
"display-status-message.patch" this patch is not applying.
Checking patch src/Controller/PublishContentPublishEntity.php...
error: while searching for:
use Drupal\node\NodeInterface;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Drupal\Core\Url;
/**
* Toggles node status.
*/
class PublishContentPublishEntity {
/**
* Toggle node status.
error: patch failed: src/Controller/PublishContentPublishEntity.php:5
error: src/Controller/PublishContentPublishEntity.php: patch does not apply
Comment #8
rodrigoaguileraThank you