protected function getTemplateQtiVariables(){
        // this is necessary because the QTI template gets a serialized string for attributes and cannot address a specific attribute
        $tooltipId = $this->getAttributeValue('aria-describedby');

        $variables = parent::getTemplateQtiVariables();
        $variables['tooltipId'] = $tooltipId;
        $variables['content'] = (string) $this->getContent();
        return $variables;
    }
protected function getTemplateQtiVariables(){
        // this is necessary because the QTI template gets a serialized string for attributes and cannot address a specific attribute
        $tooltipId = $this->getAttributeValue('aria-describedby');

        $variables = parent::getTemplateQtiVariables();
        $variables['tooltipId'] = $tooltipId;
        $variables['content'] = (string) $this->getContent();
        return $variables;
    }
protected function getTemplateQtiVariables ( ) { // this is necessary because the QTI template gets a serialized string for attributes and cannot address a specific attribute $ tooltipId = $ this -> getAttributeValue ( 'aria-describedby' ) ; $ variables = parent :: getTemplateQtiVariables ( ) ; $ variables [ 'tooltipId' ] = $ tooltipId ; $ variables [ 'content' ] = ( string ) $ this -> getContent ( ) ; return $ variables ; }
Add tooltip id & content to template variables
Add tooltip id & content to template variables