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
Order
History
Container.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Sales\Block\Order\History
;
7
14
class
Container
extends
\Magento\Framework\View\Element\Template
15
{
19
private
$order;
20
28
public
function
setOrder
(\
Magento
\Sales\Api\
Data
\
OrderInterface
$order)
29
{
30
$this->order =
$order
;
31
return
$this;
32
}
33
39
private
function
getOrder()
40
{
41
return
$this->order;
42
}
43
53
public
function
getChildHtml
(
$alias
=
''
, $useCache =
false
)
54
{
55
$layout = $this->
getLayout
();
56
if
($layout) {
57
$name
= $this->
getNameInLayout
();
58
foreach
($layout->getChildBlocks(
$name
) as $child) {
59
$child->setOrder($this->getOrder());
60
}
61
}
62
return
parent::getChildHtml(
$alias
, $useCache);
63
}
64
}
Magento\Framework\View\Element\AbstractBlock\getNameInLayout
getNameInLayout()
Definition:
AbstractBlock.php:1004
Magento\Framework\App\Config\Data
Definition:
Data.php:10
$order
$order
Definition:
order.php:55
Magento\Sales\Block\Order\History
Definition:
Container.php:6
Magento\Sales\Api\Data\OrderInterface
Definition:
OrderInterface.php:17
Magento\Framework\View\Element\AbstractBlock\getLayout
getLayout()
Definition:
AbstractBlock.php:295
Magento
Magento\Framework\View\Element\Template
Definition:
Template.php:32
Magento\Sales\Block\Order\History\Container
Definition:
Container.php:14
$alias
if(!trim($html)) $alias
Definition:
details.phtml:20
Magento\Sales\Block\Order\History\Container\getChildHtml
getChildHtml($alias='', $useCache=false)
Definition:
Container.php:53
Magento\Sales\Block\Order\History\Container\setOrder
setOrder(\Magento\Sales\Api\Data\OrderInterface $order)
Definition:
Container.php:28
$name
if(!isset($_GET['name'])) $name
Definition:
log.php:14