|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
| __construct (\Magento\Framework\App\Helper\Context $context, \Magento\Store\Model\StoreManagerInterface $storeManager, Filesystem $filesystem, \Magento\Captcha\Model\CaptchaFactory $factory) | |
| getCaptcha ($formId) | |
| getConfig ($key, $store=null) | |
| getFonts () | |
| getImgDir ($website=null) | |
| getImgUrl ($website=null) | |
Public Member Functions inherited from AbstractHelper | |
| __construct (Context $context) | |
| isModuleOutputEnabled ($moduleName=null) | |
Data Fields | |
| const | INPUT_NAME_FIELD_VALUE = 'captcha' |
| const | MODE_ALWAYS = 'always' |
| const | MODE_AFTER_FAIL = 'after_fail' |
| const | XML_PATH_CAPTCHA_FONTS = 'captcha/fonts' |
| const | DEFAULT_CAPTCHA_TYPE = 'Zend' |
Protected Member Functions | |
| _getWebsiteCode ($website=null) | |
Protected Member Functions inherited from AbstractHelper | |
| _getRequest () | |
| _getModuleName () | |
| _getUrl ($route, $params=[]) | |
Protected Attributes | |
| $_captcha = [] | |
| $_filesystem | |
| $_storeManager | |
| $_factory | |
Protected Attributes inherited from AbstractHelper | |
| $_moduleName | |
| $_request | |
| $_moduleManager | |
| $_logger | |
| $_urlBuilder | |
| $_httpHeader | |
| $_eventManager | |
| $_remoteAddress | |
| $urlEncoder | |
| $urlDecoder | |
| $scopeConfig | |
| $_cacheConfig | |
| __construct | ( | \Magento\Framework\App\Helper\Context | $context, |
| \Magento\Store\Model\StoreManagerInterface | $storeManager, | ||
| Filesystem | $filesystem, | ||
| \Magento\Captcha\Model\CaptchaFactory | $factory | ||
| ) |
|
protected |
| getCaptcha | ( | $formId | ) |
| getConfig | ( | $key, | |
$store = null |
|||
| ) |
| getFonts | ( | ) |
Get list of available fonts.
Return format: [['arial'] => ['label' => 'Arial', 'path' => '/www/magento/fonts/arial.ttf']]
Definition at line 129 of file Data.php.
| getImgDir | ( | $website = null | ) |
| getImgUrl | ( | $website = null | ) |
| const INPUT_NAME_FIELD_VALUE = 'captcha' |
| const MODE_AFTER_FAIL = 'after_fail' |
| const XML_PATH_CAPTCHA_FONTS = 'captcha/fonts' |