Pantheon\Terminus\Collections\EnvironmentOwnedCollection::replaceUrlTokens PHP Method

replaceUrlTokens() protected method

protected replaceUrlTokens ( $url ) : string
$url
return string
    protected function replaceUrlTokens($url)
    {
        $tr = ['{environment_id}' => $this->getEnvironment()->id, '{site_id}' => $this->getEnvironment()->site->id];
        return strtr($url, $tr);
    }