You are here

public function CacheflushEntity::setOwnerId in CacheFlush 8

Sets the entity owner's user ID.

Parameters

int $uid: The owner user id.

Return value

$this

Overrides EntityOwnerInterface::setOwnerId

File

modules/cacheflush_entity/src/Entity/CacheflushEntity.php, line 113

Class

CacheflushEntity
Defines the Cacheflush entity.

Namespace

Drupal\cacheflush_entity\Entity

Code

public function setOwnerId($uid) {
  $this
    ->set('uid', $uid);
  return $this;
}