From 6b3af10fcb361443e9f43826b68ebaed31f9b3d1 Mon Sep 17 00:00:00 2001 From: Chris Kankiewicz Date: Thu, 12 Dec 2019 22:49:39 -0700 Subject: [PATCH] Added docblock to icon theme function --- app/themes/default/functions.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/themes/default/functions.php b/app/themes/default/functions.php index d7e4a2d..23ac56a 100644 --- a/app/themes/default/functions.php +++ b/app/themes/default/functions.php @@ -6,6 +6,13 @@ use Twig\TwigFunction; return [ /** Theme specific Twig functions */ 'functions' => [ + /** + * Return the icon markup for a given file. + * + * @param SplFileInfo $file + * + * @return string + */ new TwigFunction('icon', function (SplFileInfo $file) { $icons = require __DIR__ . '/icons.php';