You are here

protected function TMGMTDefaultTranslatorPluginController::getEscapedString in Translation Management Tool 7

Returns the escaped string.

Defaults to use the escapeStart and escapeEnd properties but can be overriden if a non-static replacement pattern is used.

Parameters

string $string: String that should be escaped.

Return value

string

1 call to TMGMTDefaultTranslatorPluginController::getEscapedString()
TMGMTDefaultTranslatorPluginController::escapeText in plugin/tmgmt.plugin.translator.inc
Returns the escaped #text of a data item.

File

plugin/tmgmt.plugin.translator.inc, line 235
Contains the abstract translator base plugin class.

Class

TMGMTDefaultTranslatorPluginController
Default controller class for service plugins.

Code

protected function getEscapedString($string) {
  return $this->escapeStart . $string . $this->escapeEnd;
}