You are here

function jsonapi_modules_installed in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/jsonapi/jsonapi.module \jsonapi_modules_installed()
  2. 9 core/modules/jsonapi/jsonapi.module \jsonapi_modules_installed()

Implements hook_modules_installed().

File

core/modules/jsonapi/jsonapi.module, line 115
Module implementation file.

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',
    ]));
  }
}