function LinkitSearchPluginFile::getQueryInstance in Linkit 7.3
Overrides LinkitSearchPluginEntity::getQueryInstance().
Overrides LinkitSearchPluginEntity::getQueryInstance
File
- plugins/
linkit_search/ file.class.php, line 148 - Define Linkit file search plugin class.
Class
- LinkitSearchPluginFile
- Reprecents a Linkit file search plugin.
Code
function getQueryInstance() {
// Call the parent getQueryInstance method.
parent::getQueryInstance();
// Only search for permanent files.
$this->query
->propertyCondition('status', FILE_STATUS_PERMANENT);
}