function LocaleProjectRepository::deleteAll
Same name and namespace in other branches
- 11.x core/modules/locale/src/LocaleProjectRepository.php \Drupal\locale\LocaleProjectRepository::deleteAll()
Deletes all projects records.
Return value
void An associative array of items successfully returned, indexed by key.
File
-
core/
modules/ locale/ src/ LocaleProjectRepository.php, line 122
Class
- LocaleProjectRepository
- Provides storage and rebuilding of locale project information.
Namespace
Drupal\localeCode
public function deleteAll() : void {
$this->keyValueFactory
->get('locale.project')
->deleteAll();
$this->memoryCache
->delete('locale_get_projects');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.