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

Block view providers select a view for a given page block, depending on its own internal rules. Such provider is meant to work along with Page field type.
Deprecation: since 6.0.0
Show file Open project: ezsystems/ezpublish-kernel

Public Methods

Method Description
getView ( Block $block ) : ContentView | void Returns a ContentView object corresponding to $block, or null if not applicable.

Method Details

getView() public method

Returns a ContentView object corresponding to $block, or null if not applicable.
public getView ( Block $block ) : ContentView | void
$block eZ\Publish\Core\FieldType\Page\Parts\Block
return eZ\Publish\Core\MVC\Symfony\View\ContentView | void