public function TranslatorPluginInterface::escapeText in Translation Management Tool 8
Returns the escaped #text of a data item.
Parameters
array $data_item: A data item with a #text and optional #escape definitions.
Return value
string The text of the data item with translator-specific escape patterns applied.
1 method overrides TranslatorPluginInterface::escapeText()
- TranslatorPluginBase::escapeText in src/
TranslatorPluginBase.php - Returns the escaped #text of a data item.
File
- src/
TranslatorPluginInterface.php, line 181
Class
- TranslatorPluginInterface
- Interface for service plugin controllers.
Namespace
Drupal\tmgmtCode
public function escapeText(array $data_item);