123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Sales\Block\Adminhtml\Order\View\Tab;
- /**
- * Order information tab
- *
- * @api
- * @author Magento Core Team <core@magentocommerce.com>
- * @since 100.0.2
- */
- class Info extends \Magento\Sales\Block\Adminhtml\Order\AbstractOrder implements
- \Magento\Backend\Block\Widget\Tab\TabInterface
- {
- /**
- * Retrieve order model instance
- *
- * @return \Magento\Sales\Model\Order
- */
- public function getOrder()
- {
- return $this->_coreRegistry->registry('current_order');
- }
- /**
- * Retrieve source model instance
- *
- * @return \Magento\Sales\Model\Order
- */
- public function getSource()
- {
- return $this->getOrder();
- }
- /**
- * Retrieve order totals block settings
- *
- * @return array
- */
- public function getOrderTotalData()
- {
- return [
- 'can_display_total_due' => true,
- 'can_display_total_paid' => true,
- 'can_display_total_refunded' => true
- ];
- }
- /**
- * Get order info data
- *
- * @return array
- */
- public function getOrderInfoData()
- {
- return ['no_use_order_link' => true];
- }
- /**
- * Get tracking html
- *
- * @return string
- */
- public function getTrackingHtml()
- {
- return $this->getChildHtml('order_tracking');
- }
- /**
- * Get items html
- *
- * @return string
- */
- public function getItemsHtml()
- {
- return $this->getChildHtml('order_items');
- }
- /**
- * Retrieve gift options container block html
- *
- * @return string
- */
- public function getGiftOptionsHtml()
- {
- return $this->getChildHtml('gift_options');
- }
- /**
- * Get payment html
- *
- * @return string
- */
- public function getPaymentHtml()
- {
- return $this->getChildHtml('order_payment');
- }
- /**
- * View URL getter
- *
- * @param int $orderId
- * @return string
- */
- public function getViewUrl($orderId)
- {
- return $this->getUrl('sales/*/*', ['order_id' => $orderId]);
- }
- /**
- * ######################## TAB settings #################################
- */
- /**
- * {@inheritdoc}
- */
- public function getTabLabel()
- {
- return __('Information');
- }
- /**
- * {@inheritdoc}
- */
- public function getTabTitle()
- {
- return __('Order Information');
- }
- /**
- * {@inheritdoc}
- */
- public function canShowTab()
- {
- return true;
- }
- /**
- * {@inheritdoc}
- */
- public function isHidden()
- {
- return false;
- }
- }
|