LanguageConfigurationElementTest.php in Zircon Profile 8.0
File
core/modules/language/tests/language_elements_test/src/Form/LanguageConfigurationElementTest.php
View source
<?php
namespace Drupal\language_elements_test\Form;
use Drupal\Core\Form\FormBase;
use Drupal\Core\Form\FormStateInterface;
class LanguageConfigurationElementTest extends FormBase {
public function getFormId() {
return 'language_elements_configuration_element_test';
}
public function buildForm(array $form, FormStateInterface $form_state) {
$form['langcode'] = array(
'#title' => t('Language select'),
'#type' => 'language_select',
'#default_value' => language_get_default_langcode('entity_test', 'some_bundle'),
);
return $form;
}
public function submitForm(array &$form, FormStateInterface $form_state) {
}
}