function jsonapi_modules_installed

Same name in other branches
  1. 9 core/modules/jsonapi/jsonapi.module \jsonapi_modules_installed()
  2. 8.9.x core/modules/jsonapi/jsonapi.module \jsonapi_modules_installed()
  3. 11.x core/modules/jsonapi/jsonapi.module \jsonapi_modules_installed()

Implements hook_modules_installed().

File

core/modules/jsonapi/jsonapi.module, line 115

Code

function jsonapi_modules_installed($modules) {
    $potential_conflicts = [
        'content_translation',
        'config_translation',
        'language',
    ];
    if (!empty(array_intersect($modules, $potential_conflicts))) {
        \Drupal::messenger()->addWarning(t('Some multilingual features currently do not work well with JSON:API. See the <a href=":jsonapi-docs">JSON:API multilingual support documentation</a> for more information on the current status of multilingual support.', [
            ':jsonapi-docs' => 'https://www.drupal.org/docs/8/modules/jsonapi/translations',
        ]));
    }
}

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