public function CacheflushEntity::getOwner in CacheFlush 8
Returns the entity owner's user entity.
Return value
\Drupal\user\UserInterface The owner user entity.
Overrides EntityOwnerInterface::getOwner
File
- modules/
cacheflush_entity/ src/ Entity/ CacheflushEntity.php, line 99
Class
- CacheflushEntity
- Defines the Cacheflush entity.
Namespace
Drupal\cacheflush_entity\EntityCode
public function getOwner() {
return $this
->get('uid')->entity;
}