You are here

public function Meeting::setOwner in Opigno Moxtra 3.x

Same name and namespace in other branches
  1. 8 src/Entity/Meeting.php \Drupal\opigno_moxtra\Entity\Meeting::setOwner()

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/Meeting.php, line 75

Class

Meeting
Defines the Workspace entity.

Namespace

Drupal\opigno_moxtra\Entity

Code

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