original_string: protected function _confirm($message, $okCode, $cancelCode = '', $options = [])
      {
          $message = $this->_cleanConfirmMessage($message);
          $confirm = "if (confirm({$message})) { {$okCode} } {$cancelCode}";
          // We cannot change the key here in 3.x, but the behavior is inverted in this case
          $escape = isset($options['escape']) && $options['escape'] === false;
          if ($escape) {
              /** @var string $confirm */
              $confirm = h($confirm);
          }
  
          return $confirm;
      }
code: protected function _confirm($message, $okCode, $cancelCode = '', $options = [])
      {
          $message = $this->_cleanConfirmMessage($message);
          $confirm = "if (confirm({$message})) { {$okCode} } {$cancelCode}";
          // We cannot change the key here in 3.x, but the behavior is inverted in this case
          $escape = isset($options['escape']) && $options['escape'] === false;
          if ($escape) {
              /** @var string $confirm */
              $confirm = h($confirm);
          }
  
          return $confirm;
      }
code_tokens: protected function _confirm ( $ message , $ okCode , $ cancelCode = '' , $ options = [ ] ) { $ message = $ this -> _cleanConfirmMessage ( $ message ) ; $ confirm = "if (confirm({$message})) { {$okCode} } {$cancelCode}" ; // We cannot change the key here in 3.x, but the behavior is inverted in this case $ escape = isset ( $ options [ 'escape' ] ) && $ options [ 'escape' ] === false ; if ( $ escape ) { /** @var string $confirm */ $ confirm = h ( $ confirm ) ; } return $ confirm ; }
docstring: Returns a string to be used as onclick handler for confirm dialogs.
  
  @param string $message Message to be displayed
  @param string $okCode Code to be executed after user chose 'OK'
  @param string $cancelCode Code to be executed after user chose 'Cancel'
  @param array $options Array of options
  @return string onclick JS code
docstring_tokens: Returns a string to be used as onclick handler for confirm dialogs .