You are here

GlobalFunctionUnitTest.inc in Coder 8.2

File

coder_sniffer/DrupalPractice/Test/Objects/GlobalFunctionUnitTest.inc
View source
<?php

class TestForm extends FormBase {
  public function buildForm($form, $form_state) {
    $form['something'] = t('Example text');
    $form['another'] = $this
      ->t('test');
  }
  public static function example() {

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

}

Classes

Namesort descending Description
TestForm