You are here

public function SplashifyGroupEntity::setOwner in Splashify 8.2

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/SplashifyGroupEntity.php, line 124

Class

SplashifyGroupEntity
Defines the Splashify group entity entity.

Namespace

Drupal\splashify\Entity

Code

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