- public function getMarkupFieldKey($field) — Get a key to identify this field. This should uniquely identify the block
of text to be rendered and be usable as a cache key. If the object has a
PHID, using the PHID and the field name is likely reasonable:
- public function newMarkupEngine($field) — Build the engine the field should use.
- public function getMarkupText($field) — Return the contents of the specified field.
- public function didMarkupText($field, $output, $engine) — Callback for final postprocessing of output. Normally, you can return
the output unmodified.
- public function shouldUseMarkupCache($field) — Determine if the engine should try to use the markup cache or not.
Generally you should use the cache for durable/permanent content but
should not use the cache for temporary/draft content.
| string | Cache key up to 125 characters. |
| PhutilRemarkupEngine | Markup engine to use. |
| string | The raw markup contained in the field. |
| string | $field | Field name. |
| string | $output | The finalized output of the engine. |
| string | $engine | The engine which generated the output. |
| bool | True to use the markup cache. |
Copyright © LEAD Solutions B.V.