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-shipping
Block
Adminhtml
View
Comments.php
Go to the documentation of this file.
1
<?php
12
namespace
Magento\Shipping\Block\Adminhtml\View
;
13
18
class
Comments
extends
\Magento\Backend\Block\Text\ListText
19
{
25
protected
$_coreRegistry
=
null
;
26
32
public
function
__construct
(
33
\
Magento
\Framework\
View
\Element\
Context
$context,
34
\
Magento
\Framework\Registry
$registry
,
35
array
$data
= []
36
) {
37
$this->_coreRegistry =
$registry
;
38
parent::__construct($context,
$data
);
39
}
40
46
public
function
getShipment
()
47
{
48
return
$this->_coreRegistry->registry(
'current_shipment'
);
49
}
50
56
public
function
getOrder
()
57
{
58
return
$this->
getShipment
()->getOrder();
59
}
60
66
public
function
getSource
()
67
{
68
return
$this->
getShipment
();
69
}
70
}
Magento\Backend\Block\Text\ListText
Definition:
ListText.php:18
Magento\Shipping\Block\Adminhtml\View\Comments\__construct
__construct(\Magento\Framework\View\Element\Context $context, \Magento\Framework\Registry $registry, array $data=[])
Definition:
Comments.php:32
Magento\Shipping\Block\Adminhtml\View
Definition:
View.php:15
Magento\Shipping\Block\Adminhtml\View
Definition:
Comments.php:12
Magento\Shipping\Block\Adminhtml\View\Comments\getSource
getSource()
Definition:
Comments.php:66
$registry
$registry
Definition:
bundle_product_with_not_visible_children_rollback.php:16
Magento\Shipping\Block\Adminhtml\View\Comments\$_coreRegistry
$_coreRegistry
Definition:
Comments.php:25
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Shipping\Block\Adminhtml\View\Comments\getOrder
getOrder()
Definition:
Comments.php:56
Magento
Magento\Shipping\Block\Adminhtml\View\Comments
Definition:
Comments.php:18
Context
Definition:
ClassesForConstructorIntegrity.php:33
Magento\Shipping\Block\Adminhtml\View\Comments\getShipment
getShipment()
Definition:
Comments.php:46