You are here

function LinkitPluginFile::getQueryInstance in Linkit 7.2

Start a new EntityFieldQuery instance.

Overrides LinkitPluginEntity::getQueryInstance

File

plugins/linkit_plugins/linkit-plugin-file.class.php, line 86
Define Linkit file plugin class.

Class

LinkitPluginFile
@file Define Linkit file plugin class.

Code

function getQueryInstance() {

  // Call the parent getQueryInstance method.
  parent::getQueryInstance();

  // We only what permanent files.
  $this->query
    ->propertyCondition('status', FILE_STATUS_PERMANENT);
}