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

Content view providers select a view for a given content, 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\ContentInfo $contentInfo, string $viewType ) : ContentView | null Returns a ContentView object corresponding to $contentInfo, or null if not applicable.

Method Details

getView() public method

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