| 1 |
<?php |
| 2 |
|
| 3 |
namespace Codelight\GDPR\Installer\Steps; |
| 4 |
|
| 5 |
use Codelight\GDPR\Installer\InstallerStep; |
| 6 |
use Codelight\GDPR\Installer\InstallerStepInterface; |
| 7 |
|
| 8 |
class Finish extends InstallerStep implements InstallerStepInterface |
| 9 |
{ |
| 10 |
protected $slug = 'finish'; |
| 11 |
|
| 12 |
protected $type = 'wizard'; |
| 13 |
|
| 14 |
protected $template = 'installer/steps/finish'; |
| 15 |
|
| 16 |
protected $activeSteps = 4; |
| 17 |
|
| 18 |
public function submit() |
| 19 |
{ |
| 20 |
global $gdpr; |
| 21 |
$gdpr->Options->set('is_installed', true); |
| 22 |
} |
| 23 |
|
| 24 |
protected function renderFooter() |
| 25 |
{ |
| 26 |
echo gdpr('view')->render('installer/footer', ['disableBackButton' => true]); |
| 27 |
} |
| 28 |
} |