You are here

public function LatestActivity::setModule 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::setModule()

Sets the module entity.

Parameters

\Drupal\opigno_module\Entity\OpignoModuleInterface $module: The module entity.

Return value

\Drupal\opigno_learning_path\LatestActivityInterface The called entity.

Overrides LatestActivityInterface::setModule

File

src/Entity/LatestActivity.php, line 131

Class

LatestActivity
Defines the Latest Activity entity.

Namespace

Drupal\opigno_learning_path\Entity

Code

public function setModule($module) {
  $this
    ->set('module', $module
    ->id());
  return $this;
}