function LocaleProjectStorageInterface::getProjects
Get array of projects which are available for interface translation.
This project data contains all projects which will be checked for available interface translations.
For full functionality this function depends on the Update Status module. When the Update Status module is enabled the project data will contain the most recent module status; both in enabled status as in version. When the Update Status module is disabled this function will return the last known module state. The status will only be updated once the Update Status module is enabled.
Parameters
array $project_names: Array of names of the projects to get.
Return value
array Array of project data for translation update.
See also
locale_translation_build_projects()
1 method overrides LocaleProjectStorageInterface::getProjects()
- LocaleProjectStorage::getProjects in core/
modules/ locale/ src/ LocaleProjectStorage.php - Get array of projects which are available for interface translation.
File
-
core/
modules/ locale/ src/ LocaleProjectStorageInterface.php, line 123
Class
- LocaleProjectStorageInterface
- Defines the locale project storage interface.
Namespace
Drupal\localeCode
public function getProjects(array $project_names = []) : array;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.