You are here

function LinkitSearchPluginEntity::createLabel in Linkit 7.3

Create a label of an entity.

Parameters

$entity: The entity to get the label from.

Return value

The entity label, or FALSE if not found.

1 call to LinkitSearchPluginEntity::createLabel()
LinkitSearchPluginEntity::fetchResults in plugins/linkit_search/entity.class.php
Implements LinkitSearchPluginInterface::fetchResults().

File

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

Class

LinkitSearchPluginEntity
Represents a Linkit entity search plugin.

Code

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