register() register( $name, $function) Register PHP function as string formatter to the Midgard formatting engine. Parameters $name $function
format() format(mixed $content, string $name) : string Return a string as formatted by a specified filter Parameters mixed $content The content to modify string $name Filter name Returns string — The formatted content
convert_to_php() convert_to_php(string $variable) : string Compile string to php code for the specified filter Parameters string $variable The content to modify Returns string — The compiled php code