You are here

function LinkitPluginEntity::getQueryInstance in Linkit 7.2

Start a new EntityFieldQuery instance.

3 calls to LinkitPluginEntity::getQueryInstance()
LinkitPluginEntity::autocomplete_callback in plugins/linkit_plugins/linkit-plugin-entity.class.php
The autocomplete callback function for the Linkit Entity plugin.
LinkitPluginFile::getQueryInstance in plugins/linkit_plugins/linkit-plugin-file.class.php
Start a new EntityFieldQuery instance.
LinkitPluginNode::getQueryInstance in plugins/linkit_plugins/linkit-plugin-node.class.php
Start a new EntityFieldQuery instance.
2 methods override LinkitPluginEntity::getQueryInstance()
LinkitPluginFile::getQueryInstance in plugins/linkit_plugins/linkit-plugin-file.class.php
Start a new EntityFieldQuery instance.
LinkitPluginNode::getQueryInstance in plugins/linkit_plugins/linkit-plugin-node.class.php
Start a new EntityFieldQuery instance.

File

plugins/linkit_plugins/linkit-plugin-entity.class.php, line 182
Define Linkit entity plugin.

Class

LinkitPluginEntity
@file Define Linkit entity plugin.

Code

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

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