Exponential 5.x Kernel 7.5.40 Exponential New Stack (Symfony-based) Kernel — PHP Class Reference

Public Member Functions | List of all members
eZ\Publish\Core\MVC\Symfony\View\Provider\Block Interface Reference

Interface for block view providers. More...

## Public Member Functions
| getView (PageBlock $block)
| Returns a ContentView object corresponding to $block, or null if not applicable. More...

## Detailed Description

Interface for block view providers.

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.

Deprecated:
  since 6.0.0

Definition at line 19 of file MVC/Symfony/View/Provider/Block.php.

## Member Function Documentation

## ◆ getView()

eZ\Publish\Core\MVC\Symfony\View\Provider\Block::getView | ( | PageBlock | $block | ) |

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

Parameters

  \eZ\Publish\Core\FieldType\Page\Parts\Block | $block |

Returns
  \eZ\Publish\Core\MVC\Symfony\View\ContentView|void

The documentation for this interface was generated from the following file:

- MVC/Symfony/View/Provider/Block.php

Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.