function LocaleSource::deleteSources

Same name and namespace in other branches
  1. main core/modules/locale/src/LocaleSource.php \Drupal\locale\LocaleSource::deleteSources()

Delete project entries from the status cache.

Parameters

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

File

core/modules/locale/src/LocaleSource.php, line 169

Class

LocaleSource
Provides the locale source services.

Namespace

Drupal\locale

Code

public function deleteSources(array $projects) : void {
  $this->keyValueFactory
    ->get('locale.translation_status')
    ->deleteMultiple($projects);
}

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