public function ParagraphSet::setOwner in Paragraphs frontend ui 8
Sets the entity owner's user entity.
Parameters
\Drupal\user\UserInterface $account: The owner user entity.
Return value
$this
Overrides EntityOwnerInterface::setOwner
File
- src/
Entity/ ParagraphSet.php, line 128
Class
- ParagraphSet
- Defines the Paragraph set entity.
Namespace
Drupal\paragraphs_frontend_ui\EntityCode
public function setOwner(UserInterface $account) {
$this
->set('user_id', $account
->id());
return $this;
}