You are here

interface DigestFormatterInterface in Message Digest 8

An interface for formatting message digests.

Hierarchy

Expanded class hierarchy of DigestFormatterInterface

All classes that implement DigestFormatterInterface

File

src/DigestFormatterInterface.php, line 10

Namespace

Drupal\message_digest
View source
interface DigestFormatterInterface {

  /**
   * Build the full message digest content for a given set of messages.
   *
   * @param \Drupal\message\MessageInterface[] $digest
   *   An array of messages.
   * @param array $view_modes
   *   An array of view modes to build.
   * @param \Drupal\user\UserInterface $recipient
   *   The digest recipient.
   *
   * @return string
   *   Fully rendered message digest.
   */
  public function format(array $digest, array $view_modes, UserInterface $recipient);

}

Members

Namesort descending Modifiers Type Description Overrides
DigestFormatterInterface::format public function Build the full message digest content for a given set of messages. 1