Lines 403-422
sub status {
Link Here
|
403 |
|
403 |
|
404 |
my $backend_plugin = $self->get_backend_plugin($backend_name); |
404 |
my $backend_plugin = $self->get_backend_plugin($backend_name); |
405 |
|
405 |
|
406 |
Returns the installed I<Koha::Plugin> corresponding to the given backend_id |
406 |
Returns the installed I<Koha::Plugin> corresponding to the given backend_id or undef if no plugin is found |
407 |
|
407 |
|
408 |
=cut |
408 |
=cut |
409 |
|
409 |
|
410 |
sub get_backend_plugin { |
410 |
sub get_backend_plugin { |
411 |
my ( $self, $backend_id ) = @_; |
411 |
my ( $self, $backend_id ) = @_; |
412 |
|
412 |
|
413 |
my @backend_plugins = Koha::Plugins->new()->GetPlugins( |
413 |
my $koha_plugins = Koha::Plugins->new(); |
|
|
414 |
my @backend_plugins = $koha_plugins |
415 |
? Koha::Plugins->new()->GetPlugins( |
414 |
{ |
416 |
{ |
415 |
method => 'ill_backend', |
417 |
method => 'ill_backend', |
416 |
metadata => { name => $backend_id }, |
418 |
metadata => { name => $backend_id }, |
417 |
all => 1, |
419 |
all => 1, |
418 |
} |
420 |
} |
419 |
); |
421 |
) |
|
|
422 |
: (); |
420 |
|
423 |
|
421 |
return $backend_plugins[0]; |
424 |
return $backend_plugins[0]; |
422 |
} |
425 |
} |