function language_test_language_types_info

Same name in other branches
  1. 9 core/modules/language/tests/language_test/language_test.module \language_test_language_types_info()
  2. 8.9.x core/modules/language/tests/language_test/language_test.module \language_test_language_types_info()
  3. 11.x core/modules/language/tests/language_test/language_test.module \language_test_language_types_info()

Implements hook_language_types_info().

File

core/modules/language/tests/language_test/language_test.module, line 25

Code

function language_test_language_types_info() {
    if (\Drupal::state()->get('language_test.language_types')) {
        return [
            'test_language_type' => [
                'name' => t('Test'),
                'description' => t('A test language type.'),
            ],
            'fixed_test_language_type' => [
                'fixed' => [
                    'test_language_negotiation_method',
                ],
                'locked' => TRUE,
            ],
        ];
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.