You are here

public function UserModuleStatus::setModule in Opigno module 3.x

Same name and namespace in other branches
  1. 8 src/Entity/UserModuleStatus.php \Drupal\opigno_module\Entity\UserModuleStatus::setModule()

File

src/Entity/UserModuleStatus.php, line 153

Class

UserModuleStatus
Defines the User module status entity.

Namespace

Drupal\opigno_module\Entity

Code

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