class InviteLink in Invite 8
Example plugin. Simplest use case.
Plugin annotation
@Plugin(
id="invite_link",
label = @Translation("Invite Link")
)
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\invite_link\Plugin\Invite\InviteLink implements InvitePluginInterface
Expanded class hierarchy of InviteLink
File
- modules/
invite_link/ src/ Plugin/ Invite/ InviteLink.php, line 16
Namespace
Drupal\invite_link\Plugin\InviteView source
class InviteLink extends PluginBase implements InvitePluginInterface {
/**
* {@inheritdoc}
*/
public function send($invite) {
// Intentionally empty. This plugin only generates a link.
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
InviteLink:: |
public | function |
Plugin send method. Overrides InvitePluginInterface:: |
|
PluginBase:: |
protected | property | Configuration information passed into the plugin. | 1 |
PluginBase:: |
protected | property | The plugin implementation definition. | 1 |
PluginBase:: |
protected | property | The plugin_id. | |
PluginBase:: |
constant | A string which is used to separate base plugin IDs from the derivative ID. | ||
PluginBase:: |
public | function |
Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the definition of the plugin implementation. Overrides PluginInspectionInterface:: |
3 |
PluginBase:: |
public | function |
Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface:: |
|
PluginBase:: |
public | function | Determines if the plugin is configurable. | |
PluginBase:: |
public | function | Constructs a \Drupal\Component\Plugin\PluginBase object. | 92 |