You are here

interface EmailTokenEvaluatorInterface in Easy Email 8

Same name and namespace in other branches
  1. 2.0.x src/Service/EmailTokenEvaluatorInterface.php \Drupal\easy_email\Service\EmailTokenEvaluatorInterface

Hierarchy

Expanded class hierarchy of EmailTokenEvaluatorInterface

All classes that implement EmailTokenEvaluatorInterface

File

src/Service/EmailTokenEvaluatorInterface.php, line 8

Namespace

Drupal\easy_email\Service
View source
interface EmailTokenEvaluatorInterface {

  /**
   * Evaluate the tokens in entity email fields.
   *
   * @param \Drupal\easy_email\Entity\EasyEmailInterface $email
   */
  public function evaluateTokens(EasyEmailInterface $email);

  /**
   * @param \Drupal\easy_email\Entity\EasyEmailInterface $email
   * @param array|string $values
   * @param bool $unique
   *
   * @return array|string
   */
  public function replaceTokens(EasyEmailInterface $email, $values, $unique = FALSE);

  /**
   * @param \Drupal\easy_email\Entity\EasyEmailInterface $email
   *
   * @return bool
   */
  public function containsUnsafeTokens(EasyEmailInterface $email);

  /**
   * @param string $text
   * @param \Drupal\Core\Session\AccountInterface $recipient
   *
   * @return string
   */
  public function replaceUnsafeTokens($text, AccountInterface $recipient);

}

Members