Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
framework
Data
Form
FormKey
Validator.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\Data\Form\FormKey
;
7
8
use
Magento\Framework\Encryption\Helper\Security
;
9
14
class
Validator
15
{
19
protected
$_formKey
;
20
24
public
function
__construct
(\
Magento
\Framework\Data\
Form
\
FormKey
$formKey
)
25
{
26
$this->_formKey =
$formKey
;
27
}
28
35
public
function
validate
(\
Magento
\Framework\
App
\RequestInterface
$request
)
36
{
37
$formKey
=
$request
->getParam(
'form_key'
,
null
);
38
39
return
$formKey
&&
Security::compareStrings
(
$formKey
, $this->_formKey->getFormKey());
40
}
41
}
Magento\Framework\App
Magento\Framework\Data\Form\FormKey\Validator\__construct
__construct(\Magento\Framework\Data\Form\FormKey $formKey)
Definition:
Validator.php:24
Magento\Framework\Data\Form\FormKey
Definition:
Validator.php:6
Magento\Framework\Data\Form\FormKey
Definition:
FormKey.php:12
Magento\Framework\Encryption\Helper\Security
Definition:
Security.php:17
Magento
$request
$request
Definition:
quote_with_configurable_product_last_variation.php:22
Magento\Framework\Data\Form
Definition:
Form.php:21
Magento\Framework\Encryption\Helper\Security\compareStrings
static compareStrings($expected, $actual)
Definition:
Security.php:26
Magento\Framework\Data\Form\$formKey
$formKey
Definition:
Form.php:40
Magento\AdvancedPricingImportExport\Model\Import\AdvancedPricing\Validator
Definition:
TierPrice.php:6
Magento\Framework\Data\Form\FormKey\Validator\$_formKey
$_formKey
Definition:
Validator.php:19
Magento\Framework\Data\Form\FormKey\Validator\validate
validate(\Magento\Framework\App\RequestInterface $request)
Definition:
Validator.php:35