customerAccountManagement = $customerAccountManagement; } /** * @return array */ public function getButtonData() { $customerId = $this->getCustomerId(); $canModify = !$customerId || !$this->customerAccountManagement->isReadonly($this->getCustomerId()); $data = []; if ($canModify) { $data = [ 'label' => __('Save and Continue Edit'), 'class' => 'save', 'data_attribute' => [ 'mage-init' => [ 'button' => ['event' => 'saveAndContinueEdit'], ], ], 'sort_order' => 80, ]; } return $data; } }