mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 06:52:50 +08:00
💡 Comment OnboardingRESTController
This commit is contained in:
parent
a3fbe6f19f
commit
8b76e5fcb7
1 changed files with 2 additions and 0 deletions
|
@ -136,6 +136,8 @@ class OnboardingRESTController {
|
|||
$environment = $this->container->get( 'onboarding.environment' );
|
||||
$state = $this->container->get( 'onboarding.state' );
|
||||
|
||||
// Legacy onboarding module; using `State::STATE_ONBOARDED` checks is valid here.
|
||||
|
||||
return array(
|
||||
'environment' => $environment->current_environment(),
|
||||
'onboarded' => ( $state->current_state() >= State::STATE_ONBOARDED ),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue