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