diff --git a/module/VuFind/src/VuFind/ILS/Driver/Alma.php b/module/VuFind/src/VuFind/ILS/Driver/Alma.php index fb47410e6c2cb83a47ce2c35cdeaf42b2e590c67..c625a3aa6472dc58b85fc2cbefb73f7b5502c060 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/Alma.php +++ b/module/VuFind/src/VuFind/ILS/Driver/Alma.php @@ -1606,6 +1606,23 @@ class Alma extends AbstractBase implements \VuFindHttp\HttpServiceAwareInterface } } + /** + * Helper method to determine whether or not a certain method can be + * called on this driver. Required method for any smart drivers. + * + * @param string $method The name of the called method. + * @param array $params Array of passed parameters + * + * @return bool True if the method can be called with the given parameters, + * false otherwise. + * + * @SuppressWarnings(PHPMD.UnusedFormalParameter) + */ + public function supportsMethod($method, $params) + { + return is_callable([$this, $method]); + } + /** * Get the inventory types to be displayed. Possible values are: * p_avail,e_avail,d_avail