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
module-captcha
Block
Adminhtml
Captcha
DefaultCaptcha.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Captcha\Block\Adminhtml\Captcha
;
8
12
class
DefaultCaptcha
extends
\Magento\Captcha\Block\Captcha\DefaultCaptcha
13
{
17
protected
$_url
;
18
22
protected
$_config
;
23
31
public
function
__construct
(
32
\
Magento
\Framework\View\Element\Template\
Context
$context,
33
\
Magento
\
Captcha
\Helper\Data $captchaData,
34
\
Magento
\Backend\Model\UrlInterface
$url
,
35
\
Magento
\Backend\
App
\ConfigInterface
$config
,
36
array
$data
= []
37
) {
38
parent::__construct($context, $captchaData,
$data
);
39
$this->_url =
$url
;
40
$this->_config =
$config
;
41
}
42
48
public
function
getRefreshUrl
()
49
{
50
return
$this->_url->getUrl(
51
'adminhtml/refresh/refresh'
,
52
[
'_secure'
=> $this->_config->isSetFlag(
'web/secure/use_in_adminhtml'
),
'_nosecret'
=>
true
]
53
);
54
}
55
}
Magento\Framework\App
$url
$url
Definition:
query_redirect.php:14
Magento\Captcha\Block\Adminhtml\Captcha\DefaultCaptcha\$_url
$_url
Definition:
DefaultCaptcha.php:17
Magento\Captcha\Block\Adminhtml\Captcha\DefaultCaptcha\getRefreshUrl
getRefreshUrl()
Definition:
DefaultCaptcha.php:48
$config
$config
Definition:
fraud_order.php:17
Magento\Captcha\Block\Adminhtml\Captcha\DefaultCaptcha\__construct
__construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Captcha\Helper\Data $captchaData, \Magento\Backend\Model\UrlInterface $url, \Magento\Backend\App\ConfigInterface $config, array $data=[])
Definition:
DefaultCaptcha.php:31
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento
Magento\Captcha\Block\Adminhtml\Captcha\DefaultCaptcha
Definition:
DefaultCaptcha.php:12
Magento\Captcha\Block\Adminhtml\Captcha
Definition:
DefaultCaptchaTest.php:6
Magento\Captcha\Block\Captcha
Definition:
Captcha.php:18
Context
Definition:
ClassesForConstructorIntegrity.php:33
Magento\Captcha\Block\Adminhtml\Captcha\DefaultCaptcha\$_config
$_config
Definition:
DefaultCaptcha.php:22