From fc197c31b2362aeda82aecd5d8f11ec466f12ccd Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Thu, 14 Dec 2023 09:10:20 +0000 Subject: [PATCH] Bug 35536: DO NOT PUSH !!! - Example plugin After applying patch, run: perl -MKoha::Plugins -e"Koha::Plugin->new->InstallPlugins" This installs the TestMR plugin. Signed-off-by: Martin Renvoize Signed-off-by: Kyle M Hall --- Koha/Plugin/TestMR.pm | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Koha/Plugin/TestMR.pm diff --git a/Koha/Plugin/TestMR.pm b/Koha/Plugin/TestMR.pm new file mode 100644 index 00000000000..0adbe489ce2 --- /dev/null +++ b/Koha/Plugin/TestMR.pm @@ -0,0 +1,13 @@ +package Koha::Plugin::TestMR; +use Modern::Perl; +use parent qw/Koha::Plugins::Base/; +our $VERSION = 1.00; +our $metadata = { name => 'TestMR', version => $VERSION }; +sub new { + my ($class, $params) = @_; + $params->{metadata} = $metadata; + return $class->SUPER::new($params); +} +sub tool {} +sub install { 1; } +1; -- 2.30.2