Interface

eZ\Publish\Core\MVC\Symfony\View\Provider\Location

interface Location

Interface for location view providers.

Location view providers select a view for a given location, depending on its own internal rules.

Methods

ContentView|null getView(Location $location, string $viewType)

Returns a ContentView object corresponding to $location, or null if not applicable.

Details

at line 30
public ContentView|null getView(Location $location, string $viewType)

Returns a ContentView object corresponding to $location, or null if not applicable.

Parameters

Location $location
string $viewType Variation of display for your content.

Return Value

ContentView|null