CheckoutRedirectTrait
This is the CheckoutRedirectTrait trait. It contains a useful method to redirect to the correct checkout for the current commerce using it's configuration in _config.php file.
Tags
Table of Contents
__construct() | {@inheritdoc} | : mixed |
---|
Methods
__construct()
{@inheritdoc}
public
__construct(Route $route) : mixed
This overridden constructor will check the navigation checkout and the configured one (in _config.php) and switch (redirect) to the other if needed.
Parameters
- $route : Route