You are here

function LinkitPluginEntity::buildLabel in Linkit 7.2

Build the label that will be used in the search result for each row.

Overrides LinkitPlugin::buildLabel

2 calls to LinkitPluginEntity::buildLabel()
LinkitPluginEntity::autocomplete_callback in plugins/linkit_plugins/linkit-plugin-entity.class.php
The autocomplete callback function for the Linkit Entity plugin.
LinkitPluginNode::buildLabel in plugins/linkit_plugins/linkit-plugin-node.class.php
Returns a string which will be used as the search result label for this item.
1 method overrides LinkitPluginEntity::buildLabel()
LinkitPluginNode::buildLabel in plugins/linkit_plugins/linkit-plugin-node.class.php
Returns a string which will be used as the search result label for this item.

File

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

Class

LinkitPluginEntity
@file Define Linkit entity plugin.

Code

function buildLabel($entity) {
  return check_plain(entity_label($this->plugin['entity_type'], $entity));
}