Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. FunctionTSniff.php

FunctionTSniff::$includeMethodCalls

We also want to catch $this->t() calls in Drupal 8.

Type: boolean

Overrides FunctionCall::$includeMethodCalls

File

vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/Semantics/FunctionTSniff.php, line 31

Class

FunctionTSniff
Check the usage of the t() function to not escape translatable strings with back slashes. Also checks that the first argument does not use string concatenation.

Namespace

Drupal\Sniffs\Semantics

Code

protected $includeMethodCalls = true;
RSS feed
Powered by Drupal