You are here

public function SimpleMegaMenu::setRevisionUserId in Simple Mega Menu 8

Same name and namespace in other branches
  1. 2.0.x src/Entity/SimpleMegaMenu.php \Drupal\simple_megamenu\Entity\SimpleMegaMenu::setRevisionUserId()

Implements \Drupal\Core\Entity\RevisionLogInterface::setRevisionUserId().

Overrides RevisionLogEntityTrait::setRevisionUserId

1 call to SimpleMegaMenu::setRevisionUserId()
SimpleMegaMenu::preSave in src/Entity/SimpleMegaMenu.php
Acts on an entity before the presave hook is invoked.

File

src/Entity/SimpleMegaMenu.php, line 222

Class

SimpleMegaMenu
Defines the Simple mega menu entity.

Namespace

Drupal\simple_megamenu\Entity

Code

public function setRevisionUserId($uid) {
  $this
    ->set('revision_uid', $uid);
  return $this;
}