You are here

interface WishlistShareMailInterface in Commerce Wishlist 8.3

Defines the interface for the wishlist share email.

Hierarchy

Expanded class hierarchy of WishlistShareMailInterface

All classes that implement WishlistShareMailInterface

1 file declares its use of WishlistShareMailInterface
WishlistShareForm.php in src/Form/WishlistShareForm.php

File

src/Mail/WishlistShareMailInterface.php, line 10

Namespace

Drupal\commerce_wishlist\Mail
View source
interface WishlistShareMailInterface {

  /**
   * Sends the wishlist share email to the given address.
   *
   * @param \Drupal\commerce_wishlist\Entity\WishlistInterface $wishlist
   *   The wishlist.
   * @param string $to
   *   The address the email will be sent to.
   *
   * @return bool
   *   TRUE if the email was sent successfully, FALSE otherwise.
   */
  public function send(WishlistInterface $wishlist, $to);

}

Members

Namesort descending Modifiers Type Description Overrides
WishlistShareMailInterface::send public function Sends the wishlist share email to the given address. 1