function LocaleProjectRepository::set
Same name and namespace in other branches
- 11.x core/modules/locale/src/LocaleProjectRepository.php \Drupal\locale\LocaleProjectRepository::set()
Creates or updates the project record.
Parameters
LocaleTranslatableProject $project: The key of the data to store.
File
-
core/
modules/ locale/ src/ LocaleProjectRepository.php, line 100
Class
- LocaleProjectRepository
- Provides storage and rebuilding of locale project information.
Namespace
Drupal\localeCode
public function set(LocaleTranslatableProject $project) : void {
$this->keyValueFactory
->get('locale.project')
->set($project->name, $project->toArray());
$this->memoryCache
->delete('locale_get_projects');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.