Textfield.php in Drupal 10
File
core/modules/config_translation/src/FormElement/Textfield.php
View source
<?php
namespace Drupal\config_translation\FormElement;
use Drupal\Core\Language\LanguageInterface;
class Textfield extends FormElementBase {
public function getTranslationElement(LanguageInterface $translation_language, $source_config, $translation_config) {
return [
'#type' => 'textfield',
] + parent::getTranslationElement($translation_language, $source_config, $translation_config);
}
}
Classes
Name |
Description |
Textfield |
Defines the textfield element for the configuration translation interface. |