Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 293522

Move all functions from content_translation.pages.inc file to Drupal\content_translation\Controller\ContentTranslationController class

$
0
0

(Novice, my first issue, follow-up from #1832870: Only show source translation column if there are 2 or more source languages (more than n/a and the original language).).

Problem/Motivation

The file content_translation.pages.inc contains a function that is marked as deprecated, and which is to be moved to ContentTranslationController::overview().

The file content_translation.pages.inc contains a function that is marked as deprecated(content_translation_add_page()), and which is to be moved to ContentTranslationController::add()

The file content_translation.pages.inc contains a function that is marked as deprecated(content_translation_edit_page()), and which is to be moved to ContentTranslationController::edit()

Move function _content_translation_get_switch_links() from content_translation.pages.inc to ContentTranslationController::getSwitchLinks()

Move function content_translation_prepare_translation() from content_translation.pages.inc to ContentTranslationController::prepare()

Proposed resolution

Move the code.

Remaining tasks

  1. Move the code

User interface changes

No UI changes.

API changes

No API changes.

Follow-up from #1832870: Only show source translation column if there are 2 or more source languages (more than n/a and the original language)..


Viewing all articles
Browse latest Browse all 293522

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>