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-customer
Block
Account
Customer.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Customer\Block\Account
;
7
8
use
Magento\Customer\Api\CustomerRepositoryInterface
;
9
14
class
Customer
extends
\Magento\Framework\View\Element\Template
15
{
19
protected
$customerRepository
;
20
24
protected
$_viewHelper
;
25
29
protected
$httpContext
;
30
36
public
function
__construct
(
37
\
Magento
\Framework\View\Element\
Template
\
Context
$context,
38
\
Magento
\Framework\
App
\Http\
Context
$httpContext
,
39
array
$data
= []
40
) {
41
parent::__construct($context,
$data
);
42
$this->httpContext =
$httpContext
;
43
}
44
50
public
function
customerLoggedIn
()
51
{
52
return
(
bool
)$this->httpContext->getValue(\
Magento
\
Customer
\Model\
Context::CONTEXT_AUTH
);
53
}
54
}
Magento\Framework\App
Magento\Customer\Block\Account\Customer\__construct
__construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Framework\App\Http\Context $httpContext, array $data=[])
Definition:
Customer.php:36
Magento\Customer\Block\Account\Customer
Definition:
Customer.php:14
Magento\Customer\Block\Account\Customer\customerLoggedIn
customerLoggedIn()
Definition:
Customer.php:50
Magento\Framework\View\Element\Template\Context
Definition:
Context.php:23
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Customer\Model\Context\CONTEXT_AUTH
const CONTEXT_AUTH
Definition:
Context.php:18
Magento\Customer\Block\Account
Magento\Customer\Block\Account\Customer\$customerRepository
$customerRepository
Definition:
Customer.php:19
Magento\Customer\Api\CustomerRepositoryInterface
Definition:
CustomerRepositoryInterface.php:15
Magento
Magento\Framework\View\Element\Template
Definition:
Template.php:32
Magento\Customer\Block\Account\Customer\$_viewHelper
$_viewHelper
Definition:
Customer.php:24
Magento\Customer\Block\Account\Customer\$httpContext
$httpContext
Definition:
Customer.php:29