_remoteAction = $remoteAction; $this->_csrfToken = $session->getCSRFToken(); } // // Getters and Setters // /** * Get the remote action. * * @return string */ public function getRemoteAction() { return $this->_remoteAction; } /** * Get the CSRF token. * * @return string */ public function getCSRFToken() { return $this->_csrfToken; } // // Overridden methods from LinkActionRequest // /** * @see LinkActionRequest::getLocalizedOptions() */ public function getLocalizedOptions() { return array_merge( parent::getLocalizedOptions(), [ 'modalHandler' => '$.pkp.controllers.modal.RemoteActionConfirmationModalHandler', 'remoteAction' => $this->getRemoteAction(), 'csrfToken' => $this->getCSRFToken(), ] ); } } if (!PKP_STRICT_MODE) { class_alias('\PKP\linkAction\request\RemoteActionConfirmationModal', '\RemoteActionConfirmationModal'); }