ArticleGalley::getBestGalleyId PHP Method

getBestGalleyId() public method

Return the "best" article ID -- If a public article ID is set, use it; otherwise use the internal article Id.
public getBestGalleyId ( ) : string
return string
    function getBestGalleyId()
    {
        $publicGalleyId = $this->getStoredPubId('publisher-id');
        if (!empty($publicGalleyId)) {
            return $publicGalleyId;
        }
        return $this->getId();
    }