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-catalog
Block
Product
ProductList
Item
Container.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Catalog\Block\Product\ProductList\Item
;
7
8
use
Magento\Catalog\Block\Product\AwareInterface
as ProductAwareInterface;
9
16
class
Container
extends
Block
17
{
22
public
function
getChildHtml
(
$alias
=
''
, $useCache =
false
)
23
{
24
$layout = $this->
getLayout
();
25
if
($layout) {
26
$name
= $this->
getNameInLayout
();
27
foreach
($layout->getChildBlocks(
$name
) as $child) {
28
if
($child instanceof ProductAwareInterface) {
29
$child->setProduct($this->
getProduct
());
30
}
31
}
32
}
33
return
parent::getChildHtml(
$alias
, $useCache);
34
}
35
}
Magento\Framework\View\Element\AbstractBlock\getNameInLayout
getNameInLayout()
Definition:
AbstractBlock.php:1004
Magento\Catalog\Block\Product\ProductList\Item\Block
Definition:
Block.php:15
Magento\Catalog\Block\Product\AwareInterface
Definition:
AwareInterface.php:11
Magento\Catalog\Block\Product\ProductList\Item\Container\getChildHtml
getChildHtml($alias='', $useCache=false)
Definition:
Container.php:22
Magento\Catalog\Block\Product\ProductList\Item\Block\getProduct
getProduct()
Definition:
Block.php:34
Magento\Catalog\Block\Product\ProductList\Item
Magento\Framework\View\Element\AbstractBlock\getLayout
getLayout()
Definition:
AbstractBlock.php:295
Magento\Catalog\Block\Product\ProductList\Item\Container
Definition:
Container.php:16
$alias
if(!trim($html)) $alias
Definition:
details.phtml:20
$name
if(!isset($_GET['name'])) $name
Definition:
log.php:14