From 14dfde0c47dcf86ef18b6ccc93235a269e664d05 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Thu, 14 Dec 2023 09:10:20 +0000 Subject: [PATCH] Bug 35536: DONT PUSH !!! - Example plugin Content-Type: text/plain; charset=utf-8 After applying patch, run: perl -MKoha::Plugins -e"Koha::Plugin->new->InstallPlugins" This installs the TestMR plugin. --- 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 0000000000..0adbe489ce --- /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