Same as get() but with output formatting applied
Note that we won't apply this to get() when $page->outputFormatting is active in order for backwards compatibility with older installations.
Usage
// basic usage
$string = $comment->getFormatted(string $key);
// usage with all arguments
$string = $comment->getFormatted(string $key, array $options = []);
Arguments
Name | Type(s) | Description |
---|---|---|
key | string | One of: text, cite, email, user_agent, website |
options (optional) | array |
Return value
string
Comment methods and properties
API reference based on ProcessWire core version 3.0.236