You are here

private function LingotekEntity::formatSourceUrl in Lingotek Translation 7.7

1 call to LingotekEntity::formatSourceUrl()
LingotekEntity::getUrl in lib/Drupal/lingotek/LingotekEntity.php

File

lib/Drupal/lingotek/LingotekEntity.php, line 401
Defines LingotekEntity.

Class

LingotekEntity
A class wrapper for Lingotek-specific behavior on nodes.

Code

private function formatSourceUrl($base_url, $path) {
  return substr($base_url, -1) === '/' ? "{$base_url}{$path}" : "{$base_url}/{$path}";
}