protected function Login::canRegisterAfterCheckout in Commerce Core 8.2
Checks whether guests can register after checkout is complete.
Return value
bool TRUE if guests can register after checkout is complete, FALSE otherwise.
1 call to Login::canRegisterAfterCheckout()
- Login::buildPaneForm in modules/
checkout/ src/ Plugin/ Commerce/ CheckoutPane/ Login.php - Builds the pane form.
File
- modules/
checkout/ src/ Plugin/ Commerce/ CheckoutPane/ Login.php, line 450
Class
- Login
- Provides the login pane.
Namespace
Drupal\commerce_checkout\Plugin\Commerce\CheckoutPaneCode
protected function canRegisterAfterCheckout() {
$completion_register_pane = $this->checkoutFlow
->getPane('completion_register');
return $completion_register_pane
->getStepId() != '_disabled';
}