['html']]), new TwigFunction('message_queue', [FrameworkTwigRuntime::class, 'getMessageQueue']), new TwigFunction('shorten_string', [FrameworkTwigRuntime::class, 'shortenString']), ]; } /** * Removes the application root path defined by the constant "JPATH_ROOT" * * @param string $string The string to process * * @return string */ public function stripRootPath(string $string): string { return str_replace(JPATH_ROOT . DIRECTORY_SEPARATOR, '', $string); } }