<?php
/**
- *
- *
- * Created on July 30, 2007
- *
* Copyright © 2007 Yuri Astrakhan "<Firstname><Lastname>@gmail.com"
*
* This program is free software; you can redistribute it and/or modify
if ( isset( $prop['isfilematch'] ) ) {
$vals['isfilematch'] = $result->isFileMatch();
}
+
+ if ( isset( $prop['extensiondata'] ) ) {
+ $extra = $result->getExtensionData();
+ // Add augmented data to the result. The data would be organized as a map:
+ // augmentorName => data
+ if ( $extra ) {
+ $vals['extensiondata'] = ApiResult::addMetadataToResultVars( $extra );
+ }
+ }
+
return $vals;
}
'categorysnippet',
'score', // deprecated
'hasrelated', // deprecated
+ 'extensiondata',
],
ApiBase::PARAM_ISMULTI => true,
ApiBase::PARAM_HELP_MSG_PER_VALUE => [],