Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Items.php
Go to the documentation of this file.
1 <?php
8 
16 {
22  public function getColumns()
23  {
24  $columns = [];
25  foreach ($this->getLayout()->getChildBlocks($this->getNameInLayout()) as $child) {
26  if ($child instanceof \Magento\Wishlist\Block\Customer\Wishlist\Item\Column && $child->isEnabled()) {
27  $columns[] = $child;
28  }
29  }
30  return $columns;
31  }
32 }
$columns
Definition: default.phtml:15