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

Publish/Core/MVC/Symfony/Matcher/Block/View.php
Go to the documentation of this file.
1 <?php
2
7 namespace eZ\Publish\Core\MVC\Symfony\Matcher\Block;
8
9 use eZ\Publish\Core\FieldType\Page\Parts\Block;
10 use eZ\Publish\Core\MVC\Symfony\View\BlockValueView;
11 use eZ\Publish\Core\MVC\Symfony\View\View as ViewObject;
12
13 class View extends MultipleValued
14 {
22 public function matchBlock(Block $block)
23 {
24 return isset($this->values[$block->view]);
25 }
26
27 public function match(ViewObject $view)
28 {
29 if (!$view instanceof BlockValueView) {
30 return false;
31 }
32
33 return isset($this->values[$view->getBlock()->view]);
34 }
35 }
eZ\Publish\Core\FieldType\Page\Parts\Block
Definition: FieldType/Page/Parts/Block.php:22
eZ\Publish\Core\MVC\Symfony\Matcher\Block\MultipleValued
Abstract class for basic matchers, accepting multiple values to match against.
Definition: Block/MultipleValued.php:15
eZ\Publish\Core\MVC\Symfony\Matcher\Block\View
Definition: Publish/Core/MVC/Symfony/Matcher/Block/View.php:14
eZ\Publish\Core\MVC\Symfony\Matcher\Block\View\match
match(ViewObject $view)
Definition: Publish/Core/MVC/Symfony/Matcher/Block/View.php:27
eZ\Publish\Core\MVC\Symfony\Matcher\Block\View\matchBlock
matchBlock(Block $block)
Checks if a Block object matches.
Definition: Publish/Core/MVC/Symfony/Matcher/Block/View.php:22
eZ\Publish\Core\MVC\Symfony\View\BlockValueView
Definition: BlockValueView.php:12
eZ\Publish\Core\MVC\Symfony\View\View
Main interface for Views of Value objects (content, block...).
Definition: Publish/Core/MVC/Symfony/View/View.php:16
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.