Forms
Forms class handles various form actions within BigCommerce, such as registration, address updates, product reviews, and more.
It registers form handlers and provides functionality to process form actions, handle errors, success messages, redirects, and messaging. This class is part of the container and utilizes dependency injection to manage the various handlers for each action.
- Full name:
\BigCommerce\Container\Forms
- Parent class:
Provider
Constants
Constant | Visibility | Type | Value |
---|---|---|---|
DELETE_ADDRESS | public | string | ’forms.delete_address’ |
REGISTER | public | string | ’forms.register’ |
REVIEW | public | string | ’forms.review’ |
UPDATE_ADDRESS | public | string | ’forms.update_address’ |
UPDATE_PROFILE | public | string | ’forms.update_profile’ |
GIFT_CERTIFICATE | public | string | ’forms.purchase_gift_certificate’ |
ERRORS | public | string | ’forms.errors’ |
SUCCESS | public | string | ’forms.success’ |
REDIRECTS | public | string | ’forms.redirects’ |
MESSAGING | public | string | ’forms.messaging’ |
SWITCH_CURRENCY | public | string | ’forms.switch_currency’ |
Methods
register
Registers all the form actions and handlers into the container.
public register(\Pimple\Container $container): mixed
This method sets up actions for handling form submissions, errors, success, redirects, and messaging.
Parameters:
Parameter | Type | Description |
---|---|---|
$container | \Pimple\Container | The dependency injection container. |
Automatically generated on 2025-01-21