| 1 |
<?php |
| 2 |
|
| 3 |
namespace Elementor\App\Modules\Onboarding\Data\Endpoints; |
| 4 |
|
| 5 |
use Elementor\App\Modules\Onboarding\Module; |
| 6 |
use Elementor\Data\V2\Base\Endpoint as Endpoint_Base; |
| 7 |
|
| 8 |
if ( ! defined( 'ABSPATH' ) ) { |
| 9 |
exit; |
| 10 |
} |
| 11 |
|
| 12 |
class Pro_Install_Screen extends Endpoint_Base { |
| 13 |
|
| 14 |
public function get_name(): string { |
| 15 |
return 'pro-install-screen'; |
| 16 |
} |
| 17 |
|
| 18 |
public function get_format(): string { |
| 19 |
return 'onboarding'; |
| 20 |
} |
| 21 |
|
| 22 |
protected function register(): void { |
| 23 |
parent::register(); |
| 24 |
|
| 25 |
$this->register_items_route(); |
| 26 |
} |
| 27 |
|
| 28 |
public function get_items( $request ) { |
| 29 |
return [ |
| 30 |
'data' => [ |
| 31 |
'shouldShowProInstallScreen' => Module::should_show_pro_install_screen(), |
| 32 |
], |
| 33 |
]; |
| 34 |
} |
| 35 |
} |
| 36 |
|