diff --git a/core/modules/content_translation/content_translation.module b/core/modules/content_translation/content_translation.module index 11e0b32..41339c2 100644 --- a/core/modules/content_translation/content_translation.module +++ b/core/modules/content_translation/content_translation.module @@ -918,5 +918,5 @@ function content_translation_prepare_translation(EntityInterface $entity, Langua $source_translation = $entity->getTranslation($source->id); $entity->addTranslation($target->id, $source_translation->getPropertyValues()); } -} +} diff --git a/core/modules/content_translation/lib/Drupal/content_translation/ContentTranslationHandler.php b/core/modules/content_translation/lib/Drupal/content_translation/ContentTranslationHandler.php index 087ae13..2a58ddb 100644 --- a/core/modules/content_translation/lib/Drupal/content_translation/ContentTranslationHandler.php +++ b/core/modules/content_translation/lib/Drupal/content_translation/ContentTranslationHandler.php @@ -197,7 +197,8 @@ public function entityFormAlter(array &$form, array &$form_state, EntityInterfac // A new translation is not available in the translation metadata, hence // it should count as one more. $published = $new_translation; - // When creating a brand new translation, $entity->translation is not set. + // When creating a brand new translation, $entity->translation is not + // set. if (!($new_translation)) { foreach ($entity->translation as $translation) { $published += $translation['status']; diff --git a/core/modules/content_translation/lib/Drupal/content_translation/Controller/ContentTranslationController.php b/core/modules/content_translation/lib/Drupal/content_translation/Controller/ContentTranslationController.php index 3bd1bdd..e644d31 100644 --- a/core/modules/content_translation/lib/Drupal/content_translation/Controller/ContentTranslationController.php +++ b/core/modules/content_translation/lib/Drupal/content_translation/Controller/ContentTranslationController.php @@ -10,9 +10,9 @@ use Drupal\Core\Controller\ControllerBase; use Drupal\Core\DependencyInjection\ContainerInjectionInterface; use Drupal\Core\Entity\EntityInterface; +use Drupal\Core\Language\Language; use Drupal\Core\Url; use Drupal\field\FieldInfo; -use Drupal\Core\Language\Language; use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\HttpFoundation\Request; @@ -65,7 +65,7 @@ function prepareTranslation(EntityInterface $entity, Language $source, Language } /** - * Translations overview page builder. + * Builds the translations overview page. * * @param \Symfony\Component\HttpFoundation\Request $request * The request object from which to extract the entity type. @@ -240,7 +240,7 @@ public function overview(Request $request) { } /** - * Translation addition page builder. + * Builds an add translation page. * * @param \Drupal\language\Plugin\Condition\Language $source * (optional) The language of the values being translated. Defaults to the @@ -275,7 +275,7 @@ public function add(Language $source, Language $target, Request $request) { } /** - * Page callback for the edit translation page. + * Builds the edit translation page. * * @param \Drupal\language\Plugin\Condition\Language $language * (optional) The language of the translated values. Defaults to the current diff --git a/core/modules/language/lib/Drupal/language/LanguageConverter.php b/core/modules/language/lib/Drupal/language/LanguageConverter.php index 375cfaf..fe80626 100644 --- a/core/modules/language/lib/Drupal/language/LanguageConverter.php +++ b/core/modules/language/lib/Drupal/language/LanguageConverter.php @@ -2,13 +2,13 @@ /** * @file - * Contains Drupal\language\LanguageConverter. + * Contains \Drupal\language\LanguageConverter. */ namespace Drupal\language; -use Drupal\Core\ParamConverter\ParamConverterInterface; use Drupal\Core\Language\Language; +use Drupal\Core\ParamConverter\ParamConverterInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Routing\Route;