You are here

protected function AcquiaCohesionDataConverter::getCohesionKeyFromDataKey in TMGMT Translator Smartling 8.4

Parameters

string $dataKey:

Return value

string|null

1 call to AcquiaCohesionDataConverter::getCohesionKeyFromDataKey()
AcquiaCohesionDataConverter::findAndConvertCohesionXmlDataToCohesionJsonData in modules/tmgmt_smartling_acquia_cohesion/src/AcquiaCohesionDataConverter.php
Converts TMGMT Smartling's XML data items to Cohesion's JSON components.

File

modules/tmgmt_smartling_acquia_cohesion/src/AcquiaCohesionDataConverter.php, line 228

Class

AcquiaCohesionDataConverter
Class AcquiaCohesionDataConverter @package Drupal\tmgmt_smartling_acquia_cohesion

Namespace

Drupal\tmgmt_smartling_acquia_cohesion

Code

protected function getCohesionKeyFromDataKey($dataKey) {
  $explodedDataKey = $this
    ->explodeDataKey($dataKey);
  if (count($explodedDataKey) > 1) {
    return $explodedDataKey[1];
  }
  return null;
}