SP.Publishing.PublishingWeb.getPublishingWeb Method (sp.publishing)

Retrieves an instance of the SP.Publishing.PublishingWeb that wraps the specified SP.Web object (sp.js) object.

Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

SP.Publishing.PublishingWeb.getPublishingWeb(context)

Parameters

  • context

  • web
    The SP.Web object to wrap in a PublishingWeb instance.

Return value

SP.Publishing.PublishingWeb

Remarks

The web parameter must not be null.