Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. JsonapiHooks.php

function JsonapiHooks::modulesInstalled

Implements hook_modules_installed().

File

core/modules/jsonapi/src/Hook/JsonapiHooks.php, line 49

Class

JsonapiHooks
Hook implementations for jsonapi.

Namespace

Drupal\jsonapi\Hook

Code

public function modulesInstalled($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',
        ]));
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal