You are here

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

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\invite
View source
interface InvitePluginInterface {

  /**
   * Plugin send method.
   *
   * @param Invite $invite
   *   The invite entity.
   *
   * @codingStandardsIgnoreStart
   */
  public function send($invite);

}

Members

Namesort descending Modifiers Type Description Overrides
InvitePluginInterface::send public function Plugin send method. 2