public function Log::getOwnerId in Log entity 8
Returns the entity owner's user ID.
Return value
int|null The owner user ID, or NULL in case the user ID field has not been set on the entity.
Overrides EntityOwnerInterface::getOwnerId
File
- src/
Entity/ Log.php, line 170  - Contains \Drupal\log\Entity\Log.
 
Class
- Log
 - Defines the Log entity.
 
Namespace
Drupal\log\EntityCode
public function getOwnerId() {
  return $this
    ->get('user_id')->target_id;
}