protected property GlobalFunctionSniff::$traitFunctions in Coder 8.3
Same name and namespace in other branches
- 8.3.x coder_sniffer/DrupalPractice/Sniffs/Objects/GlobalFunctionSniff.php \DrupalPractice\Sniffs\Objects\GlobalFunctionSniff::traitFunctions
List of global functions that are covered by traits.
This is a subset of the global functions list. These functions can be replaced by methods that are provided by the listed trait.
Type: string[]
File
- coder_sniffer/
DrupalPractice/ Sniffs/ Objects/ GlobalFunctionSniff.php, line 55
Class
- GlobalFunctionSniff
- Checks that global functions like t() are not used in forms or controllers.
Namespace
DrupalPractice\Sniffs\ObjectsCode
protected $traitFunctions = [
't' => '\\Drupal\\Core\\StringTranslation\\StringTranslationTrait',
];