By mikelutz on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.2.x
Introduced in version:
8.2.0
Issue links:
Description:
Node::getRevisionAuthor() and Node::setRevisionAuthorId() are deprecated. You should use Node::getRevisionUser() and Node::setRevisionUserId() instead.
Before:
$node->setRevisionAuthorId($user->id());
$user = $node->getRevisionAuthor();
After:
$node->setRevisionUserId($user->id());
$user = $node->getRevisionUser();
Impacts:
Module developers
Site templates, recipes and distribution developers