function locale_translation_status_delete_projects

Same name and namespace in other branches
  1. 10 core/modules/locale/locale.module \locale_translation_status_delete_projects()
  2. 11.x core/modules/locale/locale.module \locale_translation_status_delete_projects()
  3. 9 core/modules/locale/locale.module \locale_translation_status_delete_projects()
  4. 8.9.x core/modules/locale/locale.module \locale_translation_status_delete_projects()

Delete project entries from the status cache.

Parameters

array $projects: Project name(s) to be deleted from the cache.

Deprecated

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleSource::class)->deleteSources() instead.

See also

https://www.drupal.org/node/3591660

File

core/modules/locale/locale.module, line 575

Code

function locale_translation_status_delete_projects($projects) : void {
  @trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.4.0 and is removed from drupal:13.0.0. Use \\Drupal::service(LocaleSource::class)->deleteSources(). See https://www.drupal.org/node/3591660', E_USER_DEPRECATED);
  \Drupal::service(LocaleSource::class)->deleteSources($projects);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.