. */ /** * 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. * * A help URL containing usage information that will be * presented to the user. * * @return string Filter-specific help */ public function getHelp(); /** * Gets a filter's globally unique identifier. * * @return string */ public function getKey(); }