Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Container.php
Go to the documentation of this file.
1 <?php
7 
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 }
$order
Definition: order.php:55
if(!trim($html)) $alias
Definition: details.phtml:20
getChildHtml($alias='', $useCache=false)
Definition: Container.php:53
setOrder(\Magento\Sales\Api\Data\OrderInterface $order)
Definition: Container.php:28
if(!isset($_GET['name'])) $name
Definition: log.php:14