/** * Restore general information Form Data from Session and save one in Registry * * @param \Magento\Authorization\Model\Role $role * @return $this */ protected function restoreFormDataFromSession(\Magento\Authorization\Model\Role $role) { $data = $this->_getSession()->getData(SaveRole::ROLE_EDIT_FORM_DATA_SESSION_KEY, true); if (!empty($data['rolename'])) { $role->setRoleName($data['rolename']); } return $this; }