Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 4
Textfield
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 4
 getTranslationElement
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 4
<?php
/**
 * @file
 * Contains \Drupal\config_translation\FormElement\Textfield.
 */
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 array(
      '#type' => 'textfield',
    ) + parent::getTranslationElement($translation_language, $source_config, $translation_config);
  }
}