‪TYPO3CMS  10.4
SlotReplacement.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
20 use ‪TYPO3\CMS\Extbase\SignalSlot\Dispatcher as SignalSlotDispatcher;
23 
32 {
36  protected ‪$signalSlotDispatcher;
37 
38  public function ‪__construct(SignalSlotDispatcher ‪$signalSlotDispatcher)
39  {
40  $this->signalSlotDispatcher = ‪$signalSlotDispatcher;
41  }
42 
44  {
45  [$results, $record] = $this->signalSlotDispatcher->dispatch(
46  LinkAnalyzer::class,
47  'beforeAnalyzeRecord',
48  [
49  $event->‪getResults(),
50  $event->‪getRecord(),
51  $event->‪getTableName(),
52  $event->‪getFields(),
53  $event->‪getLinkAnalyzer()
54  ]
55  );
56  $event->‪setRecord($record);
57  $event->‪setResults($results);
58  }
59 }
‪TYPO3\CMS\Linkvalidator\Event\BeforeRecordIsAnalyzedEvent\setResults
‪setResults(array $results)
Definition: BeforeRecordIsAnalyzedEvent.php:82
‪TYPO3\CMS\Linkvalidator\Event\BeforeRecordIsAnalyzedEvent\getTableName
‪getTableName()
Definition: BeforeRecordIsAnalyzedEvent.php:57
‪TYPO3\CMS\Linkvalidator\Compatibility\SlotReplacement
Definition: SlotReplacement.php:32
‪TYPO3\CMS\Linkvalidator\Event\BeforeRecordIsAnalyzedEvent\getResults
‪getResults()
Definition: BeforeRecordIsAnalyzedEvent.php:77
‪TYPO3\CMS\Linkvalidator\Event\BeforeRecordIsAnalyzedEvent\getFields
‪getFields()
Definition: BeforeRecordIsAnalyzedEvent.php:72
‪TYPO3\CMS\Linkvalidator\Compatibility\SlotReplacement\beforeLinkAnalyzerRecordIsAnalyzed
‪beforeLinkAnalyzerRecordIsAnalyzed(BeforeRecordIsAnalyzedEvent $event)
Definition: SlotReplacement.php:42
‪TYPO3\CMS\Linkvalidator\Compatibility\SlotReplacement\__construct
‪__construct(SignalSlotDispatcher $signalSlotDispatcher)
Definition: SlotReplacement.php:37
‪TYPO3\CMS\Linkvalidator\Event\BeforeRecordIsAnalyzedEvent\getRecord
‪getRecord()
Definition: BeforeRecordIsAnalyzedEvent.php:62
‪TYPO3\CMS\Linkvalidator\Compatibility
Definition: SlotReplacement.php:18
‪TYPO3\CMS\Linkvalidator\Event\BeforeRecordIsAnalyzedEvent
Definition: BeforeRecordIsAnalyzedEvent.php:27
‪TYPO3\CMS\Linkvalidator\Event\BeforeRecordIsAnalyzedEvent\setRecord
‪setRecord(array $record)
Definition: BeforeRecordIsAnalyzedEvent.php:67
‪TYPO3\CMS\Linkvalidator\Event\BeforeRecordIsAnalyzedEvent\getLinkAnalyzer
‪getLinkAnalyzer()
Definition: BeforeRecordIsAnalyzedEvent.php:87
‪TYPO3\CMS\Linkvalidator\Compatibility\SlotReplacement\$signalSlotDispatcher
‪SignalSlotDispatcher $signalSlotDispatcher
Definition: SlotReplacement.php:35
‪TYPO3\CMS\Extbase\SignalSlot\Dispatcher
Definition: Dispatcher.php:126