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

Location view providers select a view for a given location, depending on its own internal rules.
Deprecation: since 6.0.0
Show file Open project: ezsystems/ezpublish-kernel

Public Methods

Method Description
getView ( eZ\Publish\API\Repository\Values\Content\Location $location, string $viewType ) : ContentView | null Returns a ContentView object corresponding to $location, or null if not applicable.

Method Details

getView() public method

Returns a ContentView object corresponding to $location, or null if not applicable.
public getView ( eZ\Publish\API\Repository\Values\Content\Location $location, string $viewType ) : ContentView | null
$location eZ\Publish\API\Repository\Values\Content\Location
$viewType string Variation of display for your content.
return eZ\Publish\Core\MVC\Symfony\View\ContentView | null