eZ\Publish\Core\MVC\Symfony\View\Provider\Content::getView PHP Method

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
    public function getView(ContentInfo $contentInfo, $viewType);
Content