Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

Textfield.php

Same filename in this branch
  1. 11.1.x core/lib/Drupal/Core/Render/Element/Textfield.php
  2. 11.1.x core/modules/text/src/Plugin/migrate/field/d6/TextField.php
  3. 11.1.x core/modules/text/src/Plugin/migrate/field/d7/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.

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal