Skip to content

Commit

Permalink
[FEATURE] Allow setting documents
Browse files Browse the repository at this point in the history
To be in sync with old implementations it is helpful to e.g. remove the documents completly or just modify it how I like it
  • Loading branch information
georgringer authored and dkd-kaehm committed Oct 1, 2023
1 parent 81b8f2b commit 1377423
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Classes/Event/Indexing/BeforeDocumentsAreIndexedEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 1377423

Please sign in to comment.