You are here

function LinkitPluginUser::__construct in Linkit 7.2

Initialize this plugin with the plugin, profile, and entity specific variables.

Parameters

object $profile: The Linkit profile to use.

array $plugin: The plugin array.

Overrides LinkitPluginEntity::__construct

File

plugins/linkit_plugins/linkit-plugin-user.class.php, line 7
Define Linkit user plugin class.

Class

LinkitPluginUser
@file Define Linkit user plugin class.

Code

function __construct($plugin, $profile) {

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