You are here

WishlistShareMailInterface.php in Commerce Wishlist 8.3

File

src/Mail/WishlistShareMailInterface.php
View source
<?php

namespace Drupal\commerce_wishlist\Mail;

use Drupal\commerce_wishlist\Entity\WishlistInterface;

/**
 * Defines the interface for the wishlist share email.
 */
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);

}

Interfaces

Namesort descending Description
WishlistShareMailInterface Defines the interface for the wishlist share email.