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; }
Please login to continue.