By acbramley on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
11.3.x
Introduced in version:
11.3.0
Issue links:
Description:
node_mass_update() is deprecated.
Use \Drupal::service(\Drupal\node\NodeBulkUpdate::class)->process() instead.
Example
\Drupal::service(NodeBulkUpdate::class)->process($nodes, ['status' => 0], NULL, TRUE);
core/modules/node/node.admin.inc has been deprecated as well, since node_mass_update() is the only function in that file.
Impacts:
Module developers