diff --git a/Classes/Event/Indexing/BeforeDocumentsAreIndexedEvent.php b/Classes/Event/Indexing/BeforeDocumentsAreIndexedEvent.php index f97288abd8..718a9fa47a 100644 --- a/Classes/Event/Indexing/BeforeDocumentsAreIndexedEvent.php +++ b/Classes/Event/Indexing/BeforeDocumentsAreIndexedEvent.php @@ -29,7 +29,7 @@ * Previously used with * $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['solr']['IndexQueueIndexer']['preAddModifyDocuments'] */ -class BeforeDocumentsAreIndexedEvent +final class BeforeDocumentsAreIndexedEvent { public function __construct( private readonly Document $document, @@ -75,6 +75,14 @@ public function getDocuments(): array return $this->documents; } + /** + * @param Document[] $documents + */ + public function setDocuments(array $documents): void + { + $this->documents = $documents; + } + public function getTsfe(): TypoScriptFrontendController { return clone $this->tsfe;