I know how to get the user who created a node after getting the node object.
$node = \Drupal::routeMatch()->getParameter('node'); $uid = $node->getOwnerId(); $user = \Drupal\user\Entity\User::load($uid);
Since an alternative to retrieving values of the node object is for example
$node->nid->value, I tried to get the revision user ID this way.
$ruid = $node->revision_uid->value;
Unfortunately, this doesn't work, although I see with the Devel module that there is a value. So what is the equivalent in Drupal 8 to
$node->revision_uid in Drupal 7?