You are here

public function FormStateInputSniff::register in Coder 8.2

Same name and namespace in other branches
  1. 8.3 coder_sniffer/DrupalPractice/Sniffs/General/FormStateInputSniff.php \DrupalPractice\Sniffs\General\FormStateInputSniff::register()
  2. 8.3.x coder_sniffer/DrupalPractice/Sniffs/General/FormStateInputSniff.php \DrupalPractice\Sniffs\General\FormStateInputSniff::register()

Returns an array of tokens this test wants to listen for.

Return value

array

File

coder_sniffer/DrupalPractice/Sniffs/General/FormStateInputSniff.php, line 32

Class

FormStateInputSniff
Throws a message whenever $form_state['input'] is used. $form_state['values'] is preferred.

Namespace

DrupalPractice\Sniffs\General

Code

public function register() {
  return array(
    T_VARIABLE,
  );
}