Change record status: 
Project: 
Introduced in branch: 
8.5.x
Introduced in version: 
8.5.0
Description: 

In #2916740: Add generic entity actions generic entity actions were introduced. In favor of that, the following action plugins are now deprecated:

  • Drupal\comment\Plugin\Action\PublishComment
  • Drupal\comment\Plugin\Action\UnpublishComment
  • Drupal\comment\Plugin\Action\SaveComment
  • Drupal\node\Plugin\Action\PublishNode
  • Drupal\node\Plugin\Action\UnpublishNode
  • Drupal\node\Plugin\Action\SaveNode

Existing plugins that extend one of the mentioned ones, should now extend Drupal\Core\Action\Plugin\Action\PublishAction, Drupal\Core\Action\Plugin\Action\UnpublishAction or Drupal\Core\Action\Plugin\Action\SaveAction.

Beside that, the content_moderation action plugins Drupal\content_moderation\Plugin\Action\ModerationOptOutPublishNode and Drupal\content_moderation\Plugin\Action\ModerationOptOutUnpublishNode are now deprecated in favor of Drupal\content_moderation\Plugin\Action\ModerationOptOutPublish and Drupal\content_moderation\Plugin\Action\ModerationOptOutUnpublish.

Impacts: 
Module developers

Comments

geek-merlin’s picture

If you - like me - don't initially know how to fix such deprecation notices, here an example:
If you have a plugin comment_publish_action, replace it with entity:publish_action:comment.

HTH!