Acquia\CloudApi\Client\CloudApi::getSiteName PHP 메소드

getSiteName() 공개 메소드

This method allows us to do aliases in the credential files. For example we could have an entry: gardener=gardener-utest which would allow us to refer to the site as gardener in our code, and would be resolved to the correct name via the credentials file.
public getSiteName ( {String} $site )
$site {String}
    public function getSiteName($site)
    {
        if (empty($site) || empty($this->creds[$site])) {
            throw new CloudApiException(sprintf('SITE NAME: Site name [%s] is not a recognized site or site alias.', $site));
        }
        return is_array($this->creds[$site]) ? $site : $this->creds[$site];
    }