One of the main ways rules notifications were used was for notifying administrators when content was submitted that needed to be approved (unpublished content). There are also occasions where if you are sending notifications of new content to a non-user list, you would only want to include published content notifications.
I've written a patch to allow only notifying of published or only unpublished content. (Will be attached to subsequent comment.)
This patch also replaces EntityInterface with the more specific NodeInterface since this is only expected to run on content, and some functions are specific to node entities, not all generic entities.
See https://api.drupal.org/comment/62836#comment-62836 for reasoning.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | content_status_filter-2987176-1.patch | 5.75 KB | jastraat |
Comments
Comment #2
jastraat commentedComment #3
manish.upadhyay commentedComment #4
manish.upadhyay commentedComment #5
manish.upadhyay commentedComment #6
jastraat commented@manish.upadhyay - please give credit in your commit messages! https://www.drupal.org/node/52287