From 0cb3bc2565237e9f542ab4b26f2abb09defad533 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 14 Jul 2023 12:54:35 +0000 Subject: [PATCH] Bug 32986: (follow-up) POD --- Koha/Template/Plugin/Notices.pm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/Koha/Template/Plugin/Notices.pm b/Koha/Template/Plugin/Notices.pm index 7e997483a6..de8640b3c6 100644 --- a/Koha/Template/Plugin/Notices.pm +++ b/Koha/Template/Plugin/Notices.pm @@ -26,6 +26,39 @@ use C4::Koha; use C4::Context; use Koha::Notice::Templates; +=head1 NAME + +Koha::Template::Plugin::Notices + +=head1 DESCRIPTION + +The Asset plugin is a helper that gets notice template objects +accepting an optional module parameter + +=head1 SYNOPSIS + + [% USE Notices %] + + [% SET notices = Notices.GetTemplates( 'patron_slip' ) %] + [% FOREACH notice IN notices %] + ... + [% END %] + +=cut + +=head1 API + +=head2 Class Methods + +=cut + +=head3 GetTemplates + +This routine searches the Koha::Notice::Template objects with passed module +parameter + +=cut + sub GetTemplates { my ( $self, $module ) = @_; my $params = {}; -- 2.30.2