You are here

public function GlobalDefineSniff::registerFunctionNames in Coder 8.2

Same name and namespace in other branches
  1. 8.3 coder_sniffer/DrupalPractice/Sniffs/Constants/GlobalDefineSniff.php \DrupalPractice\Sniffs\Constants\GlobalDefineSniff::registerFunctionNames()
  2. 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

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\Constants

Code

public function registerFunctionNames() {
  return array(
    'define',
  );
}