You are here

public function LatestActivity::getUserId in Opigno Learning path 8

Same name and namespace in other branches
  1. 3.x src/Entity/LatestActivity.php \Drupal\opigno_learning_path\Entity\LatestActivity::getUserId()

Gets the user ID.

Return value

int The user ID.

Overrides LatestActivityInterface::getUserId

File

src/Entity/LatestActivity.php, line 160

Class

LatestActivity
Defines the Latest Activity entity.

Namespace

Drupal\opigno_learning_path\Entity

Code

public function getUserId() {
  return $this
    ->get('uid')->target_id;
}