public function LibraryItem::setOwner

File

paragraphs/modules/paragraphs_library/src/Entity/LibraryItem.php, line 214

Class

LibraryItem
Defines the LibraryItem entity.

Namespace

Drupal\paragraphs_library\Entity

Code

public function setOwner(UserInterface $account) {
  $this
    ->set('uid', $account
    ->id());
  return $this;
}