public static function OpignoGroupContext::setActivityLinkType in Opigno group manager 8
Same name and namespace in other branches
- 3.x src/OpignoGroupContext.php \Drupal\opigno_group_manager\OpignoGroupContext::setActivityLinkType()
Sets the context activity answer link type.
Parameters
string $activity_link_type: Type of activity link.
Throws
\Drupal\Core\TempStore\TempStoreException
File
- src/
OpignoGroupContext.php, line 131
Class
- OpignoGroupContext
- This class manage the context when a user enters or exits a Learning Path.
Namespace
Drupal\opigno_group_managerCode
public static function setActivityLinkType($activity_link_type) {
static::ensureSession();
/** @var \Drupal\Core\TempStore\PrivateTempStore $store */
$store = \Drupal::service('user.private_tempstore')
->get('opigno_group_manager');
$store
->set(self::ACTIVITY_LINK_TYPE, $activity_link_type);
}