]> git.koha-community.org Git - koha.git/commit
Bug 31503: (follow-up) Add 'feature_enabled' to Koha::Plugins
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 15 Sep 2023 15:09:56 +0000 (16:09 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 25 Oct 2023 13:35:22 +0000 (10:35 -0300)
commit3d857d8e9594b516f7778163ccd1ea431b8c6bb8
tree18275cc7fe2ab767bceb2e85228be1a08b9c65ab
parent90604fcfcf7dab43d01ca3412bf0df14ea90f5eb
Bug 31503: (follow-up) Add 'feature_enabled' to Koha::Plugins

This patch adds a 'feature_enabled' accessor to the Koha::Plugins class.
Passing the plugin method name for the plugin feature you're looking for
will return a boolean denoting whether any enabled plugins carry said
method.

Included in the patch is an addition to the TT KohaPlugins plugin to
enable quick access to this function.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
[EDIT] Tidied t/db_dependent/Koha/Plugins/Plugins.t
[EDIT] Tidied Koha/Template/Plugin/KohaPlugins.pm

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/Plugins.pm
Koha/Template/Plugin/KohaPlugins.pm
t/db_dependent/Koha/Plugins/Plugins.t