You are here

function LinkitSearchPluginUser::__construct in Linkit 7.3

Overrides LinkitSearchPluginEntity::__construct().

Overrides LinkitSearchPluginEntity::__construct

File

plugins/linkit_search/user.class.php, line 15
Define Linkit user search plugin class.

Class

LinkitSearchPluginUser
Reprecents a Linkit user search plugin.

Code

function __construct($plugin, $profile) {

  /**
   * The user entity doesn't add any label in their entity keys as they define a
   * "label callback" instead. Therefore we have to tell which field the user
   * entity have as label.
   */
  $this->entity_field_label = 'name';
  parent::__construct($plugin, $profile);
}