class LinkitPluginUser in Linkit 7.2
@file Define Linkit user plugin class.
Hierarchy
- class \LinkitPlugin implements LinkitPluginInterface
- class \LinkitPluginEntity
- class \LinkitPluginUser
- class \LinkitPluginEntity
Expanded class hierarchy of LinkitPluginUser
File
- plugins/
linkit_plugins/ linkit-plugin-user.class.php, line 6 - Define Linkit user plugin class.
View source
class LinkitPluginUser extends LinkitPluginEntity {
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);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
LinkitPlugin:: |
function | Determine if the handler is considered 'broken', meaning it's a a placeholder used when a handler can't be found. | 1 | |
LinkitPlugin:: |
function | Returns a string with CSS classes that will be added to the search result row for this item. | 1 | |
LinkitPlugin:: |
function | Set the search string. | ||
LinkitPlugin:: |
function | Return a string representing this handler's description in the UI. | 2 | |
LinkitPlugin:: |
function | Return a string representing this handler's name in the UI. | 2 | |
LinkitPluginEntity:: |
property | Plugin specific settings. | ||
LinkitPluginEntity:: |
property | The name of the property that contains the entity label. | ||
LinkitPluginEntity:: |
property | The entity info array of an entity type. | ||
LinkitPluginEntity:: |
property | The name of the property of the bundle object that contains the name of the bundle object. | ||
LinkitPluginEntity:: |
property | Entity field query instance. | ||
LinkitPluginEntity:: |
function |
The autocomplete callback function for the Linkit Entity plugin. Overrides LinkitPluginInterface:: |
1 | |
LinkitPluginEntity:: |
function |
Build the search row description. Overrides LinkitPlugin:: |
1 | |
LinkitPluginEntity:: |
function |
When "group_by_bundle" is active, we need to add the bundle name to the
group, else just return the entity label. Overrides LinkitPlugin:: |
2 | |
LinkitPluginEntity:: |
function |
Build the label that will be used in the search result for each row. Overrides LinkitPlugin:: |
1 | |
LinkitPluginEntity:: |
function |
Build an URL based in the path and the options. Overrides LinkitPlugin:: |
1 | |
LinkitPluginEntity:: |
function | Builds a reverse menu trail for the entity. | ||
LinkitPluginEntity:: |
function |
Generate a settings form for this handler.
Uses the standard Drupal FAPI.
The element will be attached to the "data" key. Overrides LinkitPlugin:: |
3 | |
LinkitPluginEntity:: |
function | Start a new EntityFieldQuery instance. | 2 | |
LinkitPluginUser:: |
function |
Initialize this plugin with the plugin, profile, and entity specific
variables. Overrides LinkitPluginEntity:: |