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

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