protected function TranslatorPluginBase::getEscapedString in Translation Management Tool 8
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 TranslatorPluginBase::getEscapedString()
- TranslatorPluginBase::escapeText in src/
TranslatorPluginBase.php - Returns the escaped #text of a data item.
File
- src/
TranslatorPluginBase.php, line 160
Class
- TranslatorPluginBase
- Default controller class for service plugins.
Namespace
Drupal\tmgmtCode
protected function getEscapedString($string) {
return $this->escapeStart . $string . $this->escapeEnd;
}