public function FunctionTSniff::registerFunctionNames in Coder 8.3
Same name and namespace in other branches
- 8.2 coder_sniffer/Drupal/Sniffs/Semantics/FunctionTSniff.php \Drupal\Sniffs\Semantics\FunctionTSniff::registerFunctionNames()
- 8.3.x coder_sniffer/Drupal/Sniffs/Semantics/FunctionTSniff.php \Drupal\Sniffs\Semantics\FunctionTSniff::registerFunctionNames()
Returns an array of function names this test wants to listen for.
Return value
array<string>
File
- coder_sniffer/
Drupal/ Sniffs/ Semantics/ FunctionTSniff.php, line 39
Class
- FunctionTSniff
- Check the usage of the t() function to not escape translateable strings with back slashes. Also checks that the first argument does not use string concatenation.
Namespace
Drupal\Sniffs\SemanticsCode
public function registerFunctionNames() {
return [
't',
'TranslatableMarkup',
'TranslationWrapper',
];
}