London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Interface IContentAreaLoader

Helper class to load data for content area items

Namespace: EPiServer.Web
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
public interface IContentAreaLoader

Methods

Get(ContentAreaItem)

Gets the IContent instance that the content area item references.

Declaration
IContent Get(ContentAreaItem contentAreaItem)
Parameters
Type Name Description
ContentAreaItem contentAreaItem
Returns
Type Description
IContent

LoadDisplayOption(ContentAreaItem)

Loads the DisplayOption associated with the content area item

Declaration
DisplayOption LoadDisplayOption(ContentAreaItem contentAreaItem)
Parameters
Type Name Description
ContentAreaItem contentAreaItem
Returns
Type Description
DisplayOption

The associated DisplayOption or null if no option is associated

Extension Methods