You are here

function LinkitSearchPluginEntity::getQueryInstance in Linkit 7.3

Start a new EntityFieldQuery instance.

3 calls to LinkitSearchPluginEntity::getQueryInstance()
LinkitSearchPluginEntity::fetchResults in plugins/linkit_search/entity.class.php
Implements LinkitSearchPluginInterface::fetchResults().
LinkitSearchPluginFile::getQueryInstance in plugins/linkit_search/file.class.php
Overrides LinkitSearchPluginEntity::getQueryInstance().
LinkitSearchPluginNode::getQueryInstance in plugins/linkit_search/node.class.php
Overrides LinkitSearchPluginEntity::getQueryInstance().
2 methods override LinkitSearchPluginEntity::getQueryInstance()
LinkitSearchPluginFile::getQueryInstance in plugins/linkit_search/file.class.php
Overrides LinkitSearchPluginEntity::getQueryInstance().
LinkitSearchPluginNode::getQueryInstance in plugins/linkit_search/node.class.php
Overrides LinkitSearchPluginEntity::getQueryInstance().

File

plugins/linkit_search/entity.class.php, line 193
Define Linkit entity search plugin class.

Class

LinkitSearchPluginEntity
Represents a Linkit entity search plugin.

Code

function getQueryInstance() {
  $this->query = new EntityFieldQuery();
  $this->query
    ->entityCondition('entity_type', $this->plugin['entity_type']);

  // Add the default sort on the entity label.
  $this->query
    ->propertyOrderBy($this->entity_field_label, 'ASC');
}