Doesn't unpublish nodes with Drupal 9

Created on 27 September 2021, about 3 years ago
Updated 26 June 2023, over 1 year ago

Entities do not get unpublished on Drupal 9 due to the removal of the parameter in setPublished:

"Since Drupal 8.3, the setPublished parameter is deprecated, and since Drupal 9, it is removed (https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Entity%21...)."

Replace setPublished(FALSE) with setUnpublished()

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom rviner

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024