diff --git a/core/modules/config_translation/src/FormElement/ElementInterface.php b/core/modules/config_translation/src/FormElement/ElementInterface.php index a3cc1d6..47cd387 100644 --- a/core/modules/config_translation/src/FormElement/ElementInterface.php +++ b/core/modules/config_translation/src/FormElement/ElementInterface.php @@ -9,7 +9,6 @@ use Drupal\Core\Config\Config; use Drupal\Core\Language\LanguageInterface; -use Drupal\Core\TypedData\DataDefinitionInterface; use Drupal\language\Config\LanguageConfigOverride; /** diff --git a/core/modules/config_translation/src/FormElement/FormElementBase.php b/core/modules/config_translation/src/FormElement/FormElementBase.php index ec9a023..3881346 100644 --- a/core/modules/config_translation/src/FormElement/FormElementBase.php +++ b/core/modules/config_translation/src/FormElement/FormElementBase.php @@ -85,7 +85,7 @@ public function getElements(LanguageInterface $source_language, LanguageInterfac * @return array * A render array for the source value. */ - public function getSourceElement(LanguageInterface $source_language, $source_config) { + protected function getSourceElement(LanguageInterface $source_language, $source_config) { if ($source_config) { $value = '' . nl2br($source_config) . ''; } @@ -141,7 +141,7 @@ public function getSourceElement(LanguageInterface $source_language, $source_con * translation of complex data, similar access logic must be implemented * manually. * - * @param \Drupal\Core\Language\LanguageInterface $language + * @param \Drupal\Core\Language\LanguageInterface $translation_language * The language to display the translation form for. * @param mixed $source_config * The configuration value of the element in the source language. @@ -154,7 +154,7 @@ public function getSourceElement(LanguageInterface $source_language, $source_con * @see \Drupal\config_translation\FormElement\TextFormat * @see filter_process_format() */ - public function getTranslationElement(LanguageInterface $translation_language, $source_config, $translation_config) { + protected function getTranslationElement(LanguageInterface $translation_language, $source_config, $translation_config) { // Add basic properties that apply to all form elements. return array( '#title' => $this->t('!label (!source_language)', array(