1234567891011121314151617181920212223242526272829303132 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Wishlist\Block\Customer\Wishlist;
- /**
- * Wishlist block customer items
- *
- * @api
- * @since 100.0.2
- */
- class Items extends \Magento\Framework\View\Element\Template
- {
- /**
- * Retrieve table column object list
- *
- * @return \Magento\Wishlist\Block\Customer\Wishlist\Item\Column[]
- */
- public function getColumns()
- {
- $columns = [];
- foreach ($this->getLayout()->getChildBlocks($this->getNameInLayout()) as $child) {
- if ($child instanceof \Magento\Wishlist\Block\Customer\Wishlist\Item\Column && $child->isEnabled()) {
- $columns[] = $child;
- }
- }
- return $columns;
- }
- }
|