By claudiu.cristea on
Change record status:
Draft (View all draft change records)
Project:
Introduced in branch:
8.8.x
Issue links:
Description:
locale_translation_get_projects() and locale_translation_clear_cache_projects(). A new method, ::getProjects() from locale.project service replaces locale_translation_get_projects().
| Before | After |
|---|---|
$projects = locale_translation_get_projects() |
$projects = \Drupal::service('locale.project')->getProjects() |
locale_translation_clear_cache_projects()drupal_static_reset('locale_translation_get_projects')
|
\Drupal::service('locale.project')->resetCache() |
Impacts:
Module developers
Site templates, recipes and distribution developers