public static function OpignoGroupContext::setActivityLinkType in Opigno group manager 3.x
Same name and namespace in other branches
- 8 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('tempstore.private')
->get('opigno_group_manager');
$store
->set(self::ACTIVITY_LINK_TYPE, $activity_link_type);
}