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

PreContentViewEvent.php
Go to the documentation of this file.
1 <?php
2
7 namespace eZ\Publish\Core\MVC\Symfony\Event;
8
9 use eZ\Publish\Core\MVC\Symfony\View\View;
10 use Symfony\Component\EventDispatcher\Event;
11
35 class PreContentViewEvent extends Event
36 {
38 private $contentView;
39
40 public function __construct(View $contentView)
41 {
42 $this->contentView = $contentView;
43 }
44
48 public function getContentView()
49 {
50 return $this->contentView;
51 }
52 }
eZ\Publish\Core\MVC\Symfony\Event\PreContentViewEvent
The PreContentViewEvent allows you to inject additional parameters to a content view template.
Definition: PreContentViewEvent.php:36
eZ\Publish\Core\MVC\Symfony\Event\PreContentViewEvent\__construct
__construct(View $contentView)
Definition: PreContentViewEvent.php:40
eZ\Publish\Core\MVC\Symfony\Event\PreContentViewEvent\$contentView
$contentView
Definition: PreContentViewEvent.php:38
eZ\Publish\Core\MVC\Symfony\Event\PreContentViewEvent\getContentView
getContentView()
Definition: PreContentViewEvent.php:48
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\Event
Definition: APIContentExceptionEvent.php:7
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.