_coreRegistry = $registry; parent::__construct( $context, $sessionQuote, $orderCreate, $priceCurrency, $formFactory, $dataObjectProcessor, $directoryHelper, $jsonEncoder, $customerFormFactory, $options, $addressHelper, $addressService, $criteriaBuilder, $filterBuilder, $addressMapper, $data ); } /** * Order address getter * * @return \Magento\Sales\Model\Order\Address */ protected function _getAddress() { return $this->_coreRegistry->registry('order_address'); } /** * Define form attributes (id, method, action) * * @return $this */ protected function _prepareForm() { parent::_prepareForm(); $this->_form->setId('edit_form'); $this->_form->setMethod('post'); $this->_form->setAction( $this->getUrl('sales/*/addressSave', ['address_id' => $this->_getAddress()->getId()]) ); $this->_form->setUseContainer(true); return $this; } /** * Form header text getter * * @return \Magento\Framework\Phrase */ public function getHeaderText() { return __('Order Address Information'); } /** * Return Form Elements values * * @return array */ public function getFormValues() { return $this->_getAddress()->getData(); } }