You are here

public function LStringTranslatableSniff::registerFunctionNames in Coder 8.3

Same name and namespace in other branches
  1. 8.2 coder_sniffer/Drupal/Sniffs/Semantics/LStringTranslatableSniff.php \Drupal\Sniffs\Semantics\LStringTranslatableSniff::registerFunctionNames()
  2. 8.3.x coder_sniffer/Drupal/Sniffs/Semantics/LStringTranslatableSniff.php \Drupal\Sniffs\Semantics\LStringTranslatableSniff::registerFunctionNames()

Returns an array of function names this test wants to listen for.

Return value

array<string>

File

coder_sniffer/Drupal/Sniffs/Semantics/LStringTranslatableSniff.php, line 30

Class

LStringTranslatableSniff
Checks that string literals passed to l() are translatable.

Namespace

Drupal\Sniffs\Semantics

Code

public function registerFunctionNames() {
  return [
    'l',
  ];
}