src/twigextensions/WordsmithTwigExtension.php
public function getFunctions()
    {

		$smith = Wordsmith::$plugin->smith;
		$prefix = Wordsmith::$plugin->getSettings()->twigPrefix;

		$functions = [];

		foreach ($smith->getMethodList() as $method => $meta)
		{
			$functions[] = new Twig_Function($prefix.$method, [$smith, $method], $meta);
		}

        return $functions;

    }
public function getFunctions()
    {

		$smith = Wordsmith::$plugin->smith;
		$prefix = Wordsmith::$plugin->getSettings()->twigPrefix;

		$functions = [];

		foreach ($smith->getMethodList() as $method => $meta)
		{
			$functions[] = new Twig_Function($prefix.$method, [$smith, $method], $meta);
		}

        return $functions;

    }
Returns an array of Twig functions, used in Twig templates via:

{% set fizz = fooFunction('buzz') %}

@return array