getQuery(true) ->select($db->qn('params')) ->from($db->qn('#__vikbooking_einvoicing_config')) ->where($db->qn('driver') . ' = ' . $db->q((string) $this->driverId)); $db->setQuery($query, 0, 1); $params = $db->loadResult(); return (bool) ($params ? json_decode($params, true) : null); } /** * @inheritDoc * * @see VBOHelpWizardInstruction::isProcessable() */ public function isProcessable(?string &$btnText = null) { $btnText = JText::translate('VBCONFIGURETASK'); return true; } /** * @inheritDoc * * @see VBOHelpWizardInstruction::process() */ public function process(array $args = []) { return [ 'redirect' => VBOFactory::getPlatform()->getUri()->admin('index.php?option=com_vikbooking&task=einvoicing&driver=' . $this->driverId . '#settings', false), ]; } }