Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
CaptchaStringResolver.php
Go to the documentation of this file.
1 <?php
7 
9 {
17  public function resolve(\Magento\Framework\App\RequestInterface $request, $formId)
18  {
19  $captchaParams = $request->getPost(\Magento\Captcha\Helper\Data::INPUT_NAME_FIELD_VALUE);
20 
21  return $captchaParams[$formId] ?? '';
22  }
23 }
resolve(\Magento\Framework\App\RequestInterface $request, $formId)