ContentModerationState::setOwner

public ContentModerationState::setOwner(UserInterface $account)

Sets the entity owner's user entity.

Parameters

\Drupal\user\UserInterface $account: The owner user entity.

Return value

$this

Overrides EntityOwnerInterface::setOwner

File

core/modules/content_moderation/src/Entity/ContentModerationState.php, line 117

Class

ContentModerationState
Defines the Content moderation state entity.

Namespace

Drupal\content_moderation\Entity

Code

public function setOwner(UserInterface $account) {
  $this->set('uid', $account->id());
  return $this;
}
doc_Drupal
2016-10-29 08:58:02
Comments
Leave a Comment

Please login to continue.