_data) ? $this->_data['columns'] : []; return $columns; } /** * Retrieve required options from parent * * @return void * @throws \Magento\Framework\Exception\LocalizedException */ protected function _beforeToHtml() { if (!$this->getParentBlock()) { throw new \Magento\Framework\Exception\LocalizedException(__('Invalid parent block for this block')); } $this->setOrder($this->getParentBlock()->getOrder()); parent::_beforeToHtml(); } /** * Retrieve order items collection * * @return Collection */ public function getItemsCollection() { return $this->getOrder()->getItemsCollection(); } }