AfterFileAddedToIndexEvent¶
The PSR-14 event
\TYPO3\CMS\Core\Resource\Event\AfterFileAddedToIndexEvent
is fired once an index was just added to the database (= indexed).
Example: Using listeners for this event allows to additionally populate custom
fields of the sys_file
/ sys_file_metadata
database records.
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\AfterFileAddedToIndexEvent¶
This event is fired once an index was just added to the database (= indexed).
Examples: Allows to additionally populate custom fields of the sys_file/sys_file_metadata database records.
- getFileUid()¶
- Return type
int
- getRecord()¶
- Return type
array