Bug 39971: Add POD

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Pedro Amorim 2025-05-21 13:27:27 +00:00 committed by Lucas Gass
parent e0824a79bf
commit 20e00d408f
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 7 additions and 2 deletions

View File

@ -34,9 +34,14 @@ Koha::Patron::Attribute::Types Object set class
=head3 patron_attributes_form
my $patron_attributes_form = Koha::Patron::Attribute::Types::patron_attributes_form
$patron_attributes_form = Koha::Patron::Attribute::Types::patron_attributes_form($template, $attributes, $op);
Static method that returns patron attribute types to be rendered in a form
Static method that prepares and populates the template with patron attribute types for rendering in a form. It organizes the attributes into a structure based on their class and type, taking into account repeatable and mandatory attributes, as well as those with authorized value categories. It also handles library-specific attribute type limitations and sets relevant template parameters for display.
Params:
$template - The template object to be populated with patron attributes.
$attributes - Arrayref of hashrefs containing patron attribute data.
$op - Operation type, such as 'duplicate', used to handle unique attributes.
=cut