[!!!][FEATURE] Improve ValidatorTask
The ext:linkvalidator ValidatorTask has been improved. Therefore the task was switched from marker based templates to FluidEmail. The mail content was extended for a proper list of broken links along with all necessary information such as record id, page id, and so on. This allows editors now to easily access the records with broken links without having to visit the backend module first. Because of heavy refactoring and introduction of a new PSR-14 event, extension authors are now able to fully customize the mail content and the configuration (such as to, from, subject) dynamically (e.g. adding another recipient only on production context). Both the task and its field provider got added strict types. The task however currently still needs some type casts for backwards compatibilty as the tasks state is stored as serialized string in the database. The whole link analyzing process was moved into the dedicated class `LinkAnalyzerResult`. A new field `languages` is introduced which allows to restrict the report to the defined languages which is handy if different tasks should be used (e.g. editors responsible for only one localization). Resolves: #29342 Releases: master Change-Id: Ibe070038ef66f876de38e47d6f82f4f090af96ce Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/65549 Tested-by:Sybille Peters <sypets@gmx.de> Tested-by:
TYPO3com <noreply@typo3.com> Tested-by:
Daniel Goerz <daniel.goerz@posteo.de> Reviewed-by:
Sybille Peters <sypets@gmx.de> Reviewed-by:
Daniel Goerz <daniel.goerz@posteo.de>
Showing
- typo3/sysext/core/Documentation/Changelog/master/Breaking-29342-ImproveValidatorTask.rst 69 additions, 0 deletions.../Changelog/master/Breaking-29342-ImproveValidatorTask.rst
- typo3/sysext/core/Documentation/Changelog/master/Feature-29342-ImproveValidatorTask.rst 134 additions, 0 deletions...n/Changelog/master/Feature-29342-ImproveValidatorTask.rst
- typo3/sysext/core/Resources/Private/Layouts/SystemEmail.html 12 additions, 0 deletionstypo3/sysext/core/Resources/Private/Layouts/SystemEmail.html
- typo3/sysext/linkvalidator/Classes/Event/ModifyValidatorTaskEmailEvent.php 64 additions, 0 deletions...validator/Classes/Event/ModifyValidatorTaskEmailEvent.php
- typo3/sysext/linkvalidator/Classes/Repository/BrokenLinkRepository.php 39 additions, 24 deletions...linkvalidator/Classes/Repository/BrokenLinkRepository.php
- typo3/sysext/linkvalidator/Classes/Result/LinkAnalyzerResult.php 393 additions, 0 deletions...ysext/linkvalidator/Classes/Result/LinkAnalyzerResult.php
- typo3/sysext/linkvalidator/Classes/Task/ValidatorTask.php 276 additions, 305 deletionstypo3/sysext/linkvalidator/Classes/Task/ValidatorTask.php
- typo3/sysext/linkvalidator/Classes/Task/ValidatorTaskAdditionalFieldProvider.php 58 additions, 64 deletions...tor/Classes/Task/ValidatorTaskAdditionalFieldProvider.php
- typo3/sysext/linkvalidator/Configuration/Services.yaml 3 additions, 0 deletionstypo3/sysext/linkvalidator/Configuration/Services.yaml
- typo3/sysext/linkvalidator/Resources/Private/Language/locallang.xlf 71 additions, 7 deletions...xt/linkvalidator/Resources/Private/Language/locallang.xlf
- typo3/sysext/linkvalidator/Resources/Private/Templates/Email/ValidatorTask.html 46 additions, 0 deletions...ator/Resources/Private/Templates/Email/ValidatorTask.html
- typo3/sysext/linkvalidator/Resources/Private/Templates/Email/ValidatorTask.txt 17 additions, 0 deletions...dator/Resources/Private/Templates/Email/ValidatorTask.txt
- typo3/sysext/linkvalidator/Resources/Private/Templates/mailtemplate.html 0 additions, 23 deletions...nkvalidator/Resources/Private/Templates/mailtemplate.html
- typo3/sysext/linkvalidator/Tests/Functional/Repository/BrokenLinkRepositoryTest.php 143 additions, 0 deletions.../Tests/Functional/Repository/BrokenLinkRepositoryTest.php
- typo3/sysext/linkvalidator/Tests/Functional/Repository/Fixtures/input_languages.xml 46 additions, 0 deletions.../Tests/Functional/Repository/Fixtures/input_languages.xml
Please register or sign in to comment