public function Log::getUser in Commerce Core 8.2
Gets the user.
Return value
\Drupal\user\UserInterface|null The user entity.
Overrides LogInterface::getUser
File
- modules/
log/ src/ Entity/ Log.php, line 49
Class
- Log
- Defines the log entity class.
Namespace
Drupal\commerce_log\EntityCode
public function getUser() {
return $this
->get('uid')->entity;
}