protected function prepareBlockData()
    {
        $order = $this->_checkoutSession->getLastRealOrder();

        $this->addData(
            [
                'can_view_order'  => $this->canViewOrder($order),
                'view_order_url' => $this->getUrl(
                    'sales/order/view/',
                    ['order_id' => $order->getEntityId()]
                ),
                'print_url' => $this->getUrl(
                    'sales/order/print',
                    ['order_id' => $order->getEntityId()]
                )
            ]
        );
    }
protected function prepareBlockData()
    {
        $order = $this->_checkoutSession->getLastRealOrder();

        $this->addData(
            [
                'can_view_order'  => $this->canViewOrder($order),
                'view_order_url' => $this->getUrl(
                    'sales/order/view/',
                    ['order_id' => $order->getEntityId()]
                ),
                'print_url' => $this->getUrl(
                    'sales/order/print',
                    ['order_id' => $order->getEntityId()]
                )
            ]
        );
    }
protected function prepareBlockData ( ) { $ order = $ this -> _checkoutSession -> getLastRealOrder ( ) ; $ this -> addData ( [ 'can_view_order' => $ this -> canViewOrder ( $ order ) , 'view_order_url' => $ this -> getUrl ( 'sales/order/view/' , [ 'order_id' => $ order -> getEntityId ( ) ] ) , 'print_url' => $ this -> getUrl ( 'sales/order/print' , [ 'order_id' => $ order -> getEntityId ( ) ] ) ] ) ; }
Prepares block data

@return void
Prepares block data