private function MultichoiceQuestion::checkMarkup in Quiz 8.4
Run check_markup() on the field of the specified choice alternative
Parameters
$alternativeIndex: The index of the alternative in the alternatives array.
$field: The name of the field we want to check markup on
$check_user_access: Whether or not to check for user access to the filter we're trying to apply
Return value
HTML markup
1 call to MultichoiceQuestion::checkMarkup()
- MultichoiceQuestion::validateNode in question_types/
multichoice/ lib/ Drupal/ multichoice/ MultichoiceQuestion.php - Implementation of validate
File
- question_types/
multichoice/ lib/ Drupal/ multichoice/ MultichoiceQuestion.php, line 116 - The main classes for the multichoice question type.
Class
- MultichoiceQuestion
- Extension of QuizQuestion.
Namespace
Drupal\multichoiceCode
private function checkMarkup(array &$form_state, $alternativeIndex, $field, $check_user_access = FALSE) {
$alternative = $form_state['values']['alternatives'][$alternativeIndex];
return check_markup($alternative[$field]['value'], $alternative[$field]['format']);
}