eZ\Publish\Core\REST\Server\Output\ValueObjectVisitor\RestContentTypeBase::getUrlTypeSuffix PHP Method

getUrlTypeSuffix() protected method

Returns a suffix for the URL type to generate on basis of the given $contentTypeStatus.
protected getUrlTypeSuffix ( integer $contentTypeStatus ) : string
$contentTypeStatus integer
return string
    protected function getUrlTypeSuffix($contentTypeStatus)
    {
        switch ($contentTypeStatus) {
            case Values\ContentType\ContentType::STATUS_DEFINED:
                return '';
            case Values\ContentType\ContentType::STATUS_DRAFT:
                return 'Draft';
            case Values\ContentType\ContentType::STATUS_MODIFIED:
                return 'Modified';
        }
        return '';
    }