interface InvitePluginInterface in Invite 8
For creating invite sending method plugins.
Plugin should set the plugin machine name on the invite it creates in order for the send method to be called. e.g.
$invite->setPlugin('invite_link');
Plugin annotation
@Plugin(
id="Name of Invite plugin"
)
Hierarchy
- interface \Drupal\invite\InvitePluginInterface
Expanded class hierarchy of InvitePluginInterface
All classes that implement InvitePluginInterface
See also
\Drupal\invite_link\Form\InviteLinkBlockForm->submitForm for an example.
2 files declare their use of InvitePluginInterface
- InviteByEmail.php in modules/
invite_by_email/ src/ Plugin/ Invite/ InviteByEmail.php - InviteLink.php in modules/
invite_link/ src/ Plugin/ Invite/ InviteLink.php
File
- src/
InvitePluginInterface.php, line 19
Namespace
Drupal\inviteView source
interface InvitePluginInterface {
/**
* Plugin send method.
*
* @param Invite $invite
* The invite entity.
*
* @codingStandardsIgnoreStart
*/
public function send($invite);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
InvitePluginInterface:: |
public | function | Plugin send method. | 2 |