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

AssignSection.php
Go to the documentation of this file.
1 <?php
2
7 namespace eZ\Publish\Core\Search\Common\Slot;
8
9 use eZ\Publish\Core\Search\Common\Slot;
10 use eZ\Publish\Core\SignalSlot\Signal;
11
12 class AssignSection extends Slot
13 {
19 public function receive(Signal $signal)
20 {
21 if (!$signal instanceof Signal\SectionService\AssignSectionSignal) {
22 return;
23 }
24
25 $contentInfo = $this->persistenceHandler->contentHandler()->loadContentInfo($signal->contentId);
26 $this->searchHandler->indexContent(
27 $this->persistenceHandler->contentHandler()->load($contentInfo->id, $contentInfo->currentVersionNo)
28 );
29 }
30 }
eZ\Publish\Core\Search\Common\Slot\AssignSection
Definition: AssignSection.php:13
eZ\Publish\Core\Search\Common\Slot\AssignSection\receive
receive(Signal $signal)
Receive the given $signal and react on it.
Definition: AssignSection.php:19
eZ\Publish\Core\Search\Common\Slot
General slot implementation for Search Engines.
Definition: Search/Common/Slot.php:18
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+.