function LocaleTestDevelopmentReleaseHooks::localeTranslationProjectsAlter

Implements hook_locale_translation_projects_alter().

Add a contrib module with a dev release to list of translatable modules.

File

core/modules/locale/tests/modules/locale_test_development_release/src/Hook/LocaleTestDevelopmentReleaseHooks.php, line 33

Class

LocaleTestDevelopmentReleaseHooks
Hook implementations for locale_test_development_release.

Namespace

Drupal\locale_test_development_release\Hook

Code

public function localeTranslationProjectsAlter(&$projects) {
    $projects['contrib'] = [
        'name' => 'contrib',
        'info' => [
            'name' => 'Contributed module',
            'package' => 'Other',
            'version' => '12.x-10.4-unstable11+14-dev',
            'project' => 'contrib_module',
            'datestamp' => '0',
            '_info_file_ctime' => 1442933959,
        ],
        'datestamp' => '0',
        'project_type' => 'module',
        'project_status' => TRUE,
    ];
}

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