MailFormatHelper

Defines a class containing utility methods for formatting mail messages.

Hierarchy

File

core/lib/Drupal/Core/Mail/MailFormatHelper.php, line 13

Namespace

Drupal\Core\Mail

Members

Name Modifiers Type Description
MailFormatHelper::$regexp protected static property Quoted regex expression based on base path.
MailFormatHelper::$supportedTags protected static property Array of tags supported.
MailFormatHelper::$urls protected static property Internal array of urls replaced with tokens.
MailFormatHelper::htmlToMailUrls protected static function Keeps track of URLs and replaces them with placeholder tokens.
MailFormatHelper::htmlToText public static function Transforms an HTML string into plain text, preserving its structure.
MailFormatHelper::htmlToTextClean protected static function Replaces non-quotation markers from a piece of indentation with spaces.
MailFormatHelper::htmlToTextPad protected static function Pads the last line with the given character.
MailFormatHelper::wrapMail public static function Performs format=flowed soft wrapping for mail (RFC 3676).
MailFormatHelper::wrapMailLine protected static function Wraps words on a single line.
doc_Drupal
2016-10-29 09:25:10
Comments
Leave a Comment

Please login to continue.