AfterFileContentsSetEvent¶
The PSR-14 event
\TYPO3\CMS\Core\Resource\Event\AfterFileContentsSetEvent
is fired after the contents of a file got set / replaced.
Example: Listeners can analyze content for AI purposes within extensions.
Example¶
Note
Currently, we do not have an example for this event. If you can provide a useful one, please open an issue with your code snippets or a pull request.
API¶
- class TYPO3\CMS\Core\Resource\Event\AfterFileContentsSetEvent¶
This event is fired after the contents of a file got set / replaced.
Examples: Listeners can analyze content for AI purposes within Extensions.
- getFile()¶
- Return type
TYPO3\CMS\Core\Resource\FileInterface
- getContent()¶
- Return type
string