@@ -, +, @@ --- Koha/Object.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/Koha/Object.pm +++ a/Koha/Object.pm @@ -687,13 +687,13 @@ being hashrefs containing 'str', 'type' and optionally 'category'. This is then used in to_api to render the _strings embed when requested. -Note: this only returns an empty I. Each class should have its -own mapping returned. +Note: this method throws an exception, so devs get reminded adding I<+strings> +to the spec is not enough. Each class should have its own mapping returned. =cut sub strings_map { - return {}; + Koha::Exception->throw("This method needs to be subclassed"); } =head3 public_read_list --