You are here

public static function TestForm::example in Coder 8.2

Same name in this branch
  1. 8.2 coder_sniffer/DrupalPractice/Test/Objects/GlobalFunctionUnitTest.inc \TestForm::example()
  2. 8.2 coder_sniffer/DrupalPractice/Test/Objects/GlobalDrupalUnitTest.inc \TestForm::example()
Same name and namespace in other branches
  1. 8.3 tests/DrupalPractice/Objects/GlobalDrupalUnitTest.inc \TestForm::example()
  2. 8.3 tests/DrupalPractice/Objects/drupal8/TestForm.php \TestForm::example()
  3. 8.3.x tests/DrupalPractice/Objects/GlobalDrupalUnitTest.inc \TestForm::example()
  4. 8.3.x tests/DrupalPractice/Objects/drupal8/TestForm.php \TestForm::example()

File

coder_sniffer/DrupalPractice/Test/Objects/GlobalFunctionUnitTest.inc, line 10

Class

TestForm

Code

public static function example() {

  // t() calls are allowed in static methods.
  return t('Example text');
}