public function FormErrorTSniff::registerFunctionNames in Coder 8.3.x
Same name and namespace in other branches
- 8.3 coder_sniffer/DrupalPractice/Sniffs/FunctionCalls/FormErrorTSniff.php \DrupalPractice\Sniffs\FunctionCalls\FormErrorTSniff::registerFunctionNames()
- 8.2 coder_sniffer/DrupalPractice/Sniffs/FunctionCalls/FormErrorTSniff.php \DrupalPractice\Sniffs\FunctionCalls\FormErrorTSniff::registerFunctionNames()
Returns an array of function names this test wants to listen for.
Return value
array<string>
File
- coder_sniffer/
DrupalPractice/ Sniffs/ FunctionCalls/ FormErrorTSniff.php, line 31
Class
- FormErrorTSniff
- Verifiies that messages passed to form_set_error() run through t().
Namespace
DrupalPractice\Sniffs\FunctionCallsCode
public function registerFunctionNames() {
return [
'form_set_error',
'form_error',
];
}