Textfield.php

Same filename in this branch
  1. 9 core/modules/text/src/Plugin/migrate/field/d6/TextField.php
  2. 9 core/modules/text/src/Plugin/migrate/field/d7/TextField.php
  3. 9 core/lib/Drupal/Core/Render/Element/Textfield.php
Same filename in other branches
  1. 8.9.x core/modules/config_translation/src/FormElement/Textfield.php
  2. 8.9.x core/modules/text/src/Plugin/migrate/field/d6/TextField.php
  3. 8.9.x core/modules/text/src/Plugin/migrate/field/d7/TextField.php
  4. 8.9.x core/modules/text/src/Plugin/migrate/cckfield/TextField.php
  5. 8.9.x core/lib/Drupal/Core/Render/Element/Textfield.php
  6. 10 core/modules/config_translation/src/FormElement/Textfield.php
  7. 10 core/modules/text/src/Plugin/migrate/field/d6/TextField.php
  8. 10 core/modules/text/src/Plugin/migrate/field/d7/TextField.php
  9. 10 core/lib/Drupal/Core/Render/Element/Textfield.php
  10. 11.x core/modules/config_translation/src/FormElement/Textfield.php
  11. 11.x core/modules/text/src/Plugin/migrate/field/d6/TextField.php
  12. 11.x core/modules/text/src/Plugin/migrate/field/d7/TextField.php
  13. 11.x core/lib/Drupal/Core/Render/Element/Textfield.php

Namespace

Drupal\config_translation\FormElement

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

Title Deprecated Summary
Textfield Defines the textfield element for the configuration translation interface.

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