public static function AjaxCartHelper::getInstance in Ajax Add to Cart 8
Get class instance using this function.
Return value
DomainRouteMetaHelper return Object.
2 calls to AjaxCartHelper::getInstance()
- ajax_add_to_cart_ajax_validate in ./
ajax_add_to_cart.module - Define a validation for forms.
- ajax_add_to_cart_form_alter in ./
ajax_add_to_cart.module - Define changes for standard forms.
File
- src/
Helper/ AjaxCartHelper.php, line 117
Class
- AjaxCartHelper
- Class AjaxCartHelper.
Namespace
Drupal\ajax_add_to_cart\HelperCode
public static function getInstance() {
if (!self::$helper) {
self::$helper = new AjaxCartHelper();
}
return self::$helper;
}