modules/acm/src/I18nHelper.php
public function getLangcodeFromStoreId($store_id) {
    $mapping = $this->getStoreLanguageMapping();
    $mapping = is_array($mapping) && !empty($mapping) ? array_flip(array_filter($mapping)) : NULL;

    if (empty($store_id)) {
      return array_shift($mapping);
    }

    return !empty($mapping[$store_id]) ? $mapping[$store_id] : NULL;
  }
public function getLangcodeFromStoreId($store_id) {
    $mapping = $this->getStoreLanguageMapping();
    $mapping = is_array($mapping) && !empty($mapping) ? array_flip(array_filter($mapping)) : NULL;

    if (empty($store_id)) {
      return array_shift($mapping);
    }

    return !empty($mapping[$store_id]) ? $mapping[$store_id] : NULL;
  }
public function getLangcodeFromStoreId ( $ store_id ) { $ mapping = $ this -> getStoreLanguageMapping ( ) ; $ mapping = is_array ( $ mapping ) && ! empty ( $ mapping ) ? array_flip ( array_filter ( $ mapping ) ) : NULL ; if ( empty ( $ store_id ) ) { return array_shift ( $ mapping ) ; } return ! empty ( $ mapping [ $ store_id ] ) ? $ mapping [ $ store_id ] : NULL ; }
Helper method to get language code from store id.

@param string $store_id
Store id to convert to language code.

@return string|null
Language code if available or null.
Helper method to get language code from store id .