You are here

protected property GlobalClassSniff::$classes in Coder 8.2

Same name and namespace in other branches
  1. 8.3 coder_sniffer/DrupalPractice/Sniffs/Objects/GlobalClassSniff.php \DrupalPractice\Sniffs\Objects\GlobalClassSniff::classes
  2. 8.3.x coder_sniffer/DrupalPractice/Sniffs/Objects/GlobalClassSniff.php \DrupalPractice\Sniffs\Objects\GlobalClassSniff::classes

Class names that should not be called statically, mostly entity classes.

Type: string[]

File

coder_sniffer/DrupalPractice/Sniffs/Objects/GlobalClassSniff.php, line 32

Class

GlobalClassSniff
Checks that Node::load() calls and friends are not used in forms, controllers or services.

Namespace

DrupalPractice\Sniffs\Objects

Code

protected $classes = array(
  'File',
  'Node',
  'NodeType',
  'Role',
  'Term',
  'User',
);