. /** * Callback methods for preview question component * * @package qbank_previewquestion * @copyright 2023 Paul Holden * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ declare(strict_types=1); /** * Get the current user preferences that are available * * @return array[] */ function qbank_previewquestion_user_preferences(): array { return [ 'core_question_preview_techinfo_collapsed' => [ 'type' => PARAM_BOOL, 'null' => NULL_NOT_ALLOWED, 'default' => true, 'permissioncallback' => [core_user::class, 'is_current_user'], ], ]; }