You are here

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;

/**
 * Defines the textfield element for the configuration translation interface.
 */
class Textfield extends FormElementBase {

  /**
   * {@inheritdoc}
   */
  public function getTranslationElement(LanguageInterface $translation_language, $source_config, $translation_config) {
    return [
      '#type' => 'textfield',
    ] + parent::getTranslationElement($translation_language, $source_config, $translation_config);
  }

}

Classes

Namesort descending Description
Textfield Defines the textfield element for the configuration translation interface.