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

RevealContent.php
Go to the documentation of this file.
1 <?php
2
7 declare(strict_types=1);
8
9 namespace eZ\Publish\Core\Search\Common\Slot;
10
11 use eZ\Publish\Core\SignalSlot\Signal;
12
13 class RevealContent extends AbstractSubtree
14 {
20 public function receive(Signal $signal)
21 {
22 if (!$signal instanceof Signal\ContentService\RevealContentSignal) {
23 return;
24 }
25
26 $locations = $this->persistenceHandler->locationHandler()->loadLocationsByContent($signal->contentId);
27 foreach ($locations as $location) {
28 $this->indexSubtree($location->id);
29 }
30 }
31 }
eZ\Publish\Core\Search\Common\Slot\AbstractSubtree
A base Search Engine slot providing indexing of the subtree.
Definition: AbstractSubtree.php:15
eZ\Publish\Core\Search\Common\Slot\AbstractSubtree\indexSubtree
indexSubtree($locationId)
Definition: AbstractSubtree.php:16
eZ\Publish\Core\Search\Common\Slot\RevealContent
Definition: RevealContent.php:14
eZ\Publish\Core\Search\Common\Slot\RevealContent\receive
receive(Signal $signal)
Receive the given $signal and react on it.
Definition: RevealContent.php:20
eZ\Publish\Core\SignalSlot\Signal
Base class for Signals.
Definition: Signal.php:18
eZ\Publish\Core\Search\Common\Slot
Definition: AbstractSubtree.php:7
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.