locale_translation_status_delete_languages($langcodes)
Delete language entries from the status cache.
array $langcodes: Language code(s) to be deleted from the cache.
function locale_translation_status_delete_languages($langcodes) { if ($status = locale_translation_get_status()) { foreach ($status as $project => $languages) { foreach ($languages as $langcode => $source) { if (in_array($langcode, $langcodes)) { unset($status[$project][$langcode]); } } } \Drupal::state()->set('locale.translation_status', $status); } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!locale!locale.module/function/locale_translation_status_delete_languages/8.1.x