. */ /** * Textfilter interface. * * This is an interface for creating Textfilters. * * @since 4.6.0 * @package Textfilter */ namespace Textpattern\Textfilter; interface TextfilterInterface { /** * Filters the given raw input value. * * @param string $thing The raw input string * @param array $options Options * @return string Filtered output text */ public function filter($thing, $options); /** * Gets filter-specific help. * * Help can be used to set and offer HTML formatted instructions, * examples and formatting tips. These instructions will be presented to * the user. * * @return string HTML for filter-specific help */ public function getHelp(); /** * Gets a filter's globally unique identifier. * * @return string */ public function getKey(); }