public function GlobalDefineSniff::registerFunctionNames in Coder 8.3
Same name and namespace in other branches
- 8.2 coder_sniffer/DrupalPractice/Sniffs/Constants/GlobalDefineSniff.php \DrupalPractice\Sniffs\Constants\GlobalDefineSniff::registerFunctionNames()
- 8.3.x coder_sniffer/DrupalPractice/Sniffs/Constants/GlobalDefineSniff.php \DrupalPractice\Sniffs\Constants\GlobalDefineSniff::registerFunctionNames()
Returns an array of function names this test wants to listen for.
Return value
array<string>
File
- coder_sniffer/
DrupalPractice/ Sniffs/ Constants/ GlobalDefineSniff.php, line 32
Class
- GlobalDefineSniff
- Checks that global define() constants are not used in modules in Drupal 8.
Namespace
DrupalPractice\Sniffs\ConstantsCode
public function registerFunctionNames() {
return [
'define',
];
}