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-sales
Block
Guest
Link.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Sales\Block\Guest
;
7
8
use
Magento\Customer\Model\Context
;
9
17
class
Link
extends
\Magento\Framework\View\Element\Html\Link\Current
18
{
22
protected
$httpContext
;
23
30
public
function
__construct
(
31
\
Magento
\Framework\View\Element\Template\
Context
$context,
32
\
Magento
\Framework\
App
\DefaultPathInterface $defaultPath,
33
\
Magento
\Framework\
App
\Http\
Context
$httpContext
,
34
array
$data
= []
35
) {
36
parent::__construct($context, $defaultPath,
$data
);
37
$this->httpContext =
$httpContext
;
38
}
39
43
protected
function
_toHtml
()
44
{
45
if
($this->httpContext->getValue(
Context::CONTEXT_AUTH
)) {
46
return
''
;
47
}
48
return
parent::_toHtml();
49
}
50
}
Magento\Sales\Block\Guest\Link\_toHtml
_toHtml()
Definition:
Link.php:43
Magento\Framework\App
Magento\Sales\Block\Guest\Link\__construct
__construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Framework\App\DefaultPathInterface $defaultPath, \Magento\Framework\App\Http\Context $httpContext, array $data=[])
Definition:
Link.php:30
Magento\Sales\Block\Guest
Definition:
Link.php:6
Magento\Sales\Block\Guest\Link
Definition:
Link.php:17
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Customer\Model\Context\CONTEXT_AUTH
const CONTEXT_AUTH
Definition:
Context.php:18
Magento
Magento\Sales\Block\Guest\Link\$httpContext
$httpContext
Definition:
Link.php:22
Magento\Customer\Model\Context
Definition:
Context.php:8