Textfield.php

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