From 9d2567a6f8d0d2788f58a055887d8cd15024a8bf 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 Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- 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.39.5