Textfield.php
Same filename in this branch
Same filename in other branches
- 9 core/modules/config_translation/src/FormElement/Textfield.php
- 9 core/modules/text/src/Plugin/migrate/field/d6/TextField.php
- 9 core/modules/text/src/Plugin/migrate/field/d7/TextField.php
- 9 core/lib/Drupal/Core/Render/Element/Textfield.php
- 8.9.x core/modules/config_translation/src/FormElement/Textfield.php
- 8.9.x core/modules/text/src/Plugin/migrate/field/d6/TextField.php
- 8.9.x core/modules/text/src/Plugin/migrate/field/d7/TextField.php
- 8.9.x core/modules/text/src/Plugin/migrate/cckfield/TextField.php
- 8.9.x core/lib/Drupal/Core/Render/Element/Textfield.php
- 10 core/modules/config_translation/src/FormElement/Textfield.php
- 10 core/modules/text/src/Plugin/migrate/field/d6/TextField.php
- 10 core/modules/text/src/Plugin/migrate/field/d7/TextField.php
- 10 core/lib/Drupal/Core/Render/Element/Textfield.php
Namespace
Drupal\config_translation\FormElementFile
-
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.