eZ\Publish\Core\REST\Client\ContentTypeService::copyContentType PHP Метод

copyContentType() публичный Метод

New Type will have $userId as creator / modifier, created / modified should be updated with current time, updated remoteId and identifier should be appended with '_' + unique string.
public copyContentType ( eZ\Publish\API\Repository\Values\ContentType\ContentType $contentType, eZ\Publish\API\Repository\Values\User\User $user = null ) : eZ\Publish\API\Repository\Values\ContentType\ContentType
$contentType eZ\Publish\API\Repository\Values\ContentType\ContentType
$user eZ\Publish\API\Repository\Values\User\User if null the current user is used
Результат eZ\Publish\API\Repository\Values\ContentType\ContentType
    public function copyContentType(ContentType $contentType, User $user = null)
    {
        throw new \RuntimeException('@todo: Implement.');
    }