You are here

function _lingotek_get_mapper in Lingotek Translation 8.2

1 call to _lingotek_get_mapper()
lingotek_update_8217 in ./lingotek.install
Move Lingotek profile to config metadata from settings.

File

./lingotek.install, line 1050
Install, update and uninstall functions for the Lingotek module.

Code

function _lingotek_get_mapper($plugin_id) {

  /** @var \Drupal\config_translation\ConfigMapperManager $mapper_manager */
  $mapper_manager = \Drupal::service('plugin.manager.config_translation.mapper');
  $mappers = $mapper_manager
    ->getMappers();
  $mapper = isset($mappers[$plugin_id]) ? $mappers[$plugin_id] : NULL;
  return $mapper;
}