public static function OpignoTinCanApiStatements::contextSetLanguage in Opigno TinCan API 8
Same name and namespace in other branches
- 3.x src/OpignoTinCanApiStatements.php \Drupal\opigno_tincan_api\OpignoTinCanApiStatements::contextSetLanguage()
Sets context language.
Parameters
\TinCan\Context $context: The context to edit for the statement.
string $language: The language to add.
Return value
\TinCan\Context Context.
7 calls to OpignoTinCanApiStatements::contextSetLanguage()
- OpignoTincanLiveMeeting::createAndSendTincanStatementsForMeeting in modules/
opigno_tincan_live_meeting/ src/ EventSubscriber/ OpignoTincanLiveMeeting.php - Sends tincan statements for Live meeting.
- opigno_tincan_modules_user_module_status_insert in modules/
opigno_tincan_modules/ opigno_tincan_modules.module - Implements hook_ENTITY_TYPE_insert().
- opigno_tincan_modules_user_module_status_presave in modules/
opigno_tincan_modules/ opigno_tincan_modules.module - Implements hook_ENTITY_TYPE_presave().
- _opigno_tincan_activities_create_and_send_statements in modules/
opigno_tincan_activities/ opigno_tincan_activities.module - The main function for building tincan statement object for opigno activity.
- _opigno_tincan_courses_create_and_send_course_statements in modules/
opigno_tincan_courses/ opigno_tincan_courses.module - Creates and sends course statements.
File
- src/
OpignoTinCanApiStatements.php, line 128
Class
- OpignoTinCanApiStatements
- Class OpignoTinCanApiStatements.
Namespace
Drupal\opigno_tincan_apiCode
public static function contextSetLanguage(Context &$context, $language) {
// _opigno_tincan_api_context_set_language.
if (!empty($language) && $language != Language::LANGCODE_NOT_SPECIFIED) {
$context
->setLanguage($language);
}
return $context;
}