Add custom report targets exhibitions and loans
This commit is contained in:
2
l18n
2
l18n
Submodule l18n updated: dcd03ce585...69d86e4bf5
@ -13,6 +13,8 @@ enum MDCustomReportTarget implements MDValueEnumInterface, JsonSerializable {
|
|||||||
|
|
||||||
case object_single;
|
case object_single;
|
||||||
case object_list;
|
case object_list;
|
||||||
|
case loan;
|
||||||
|
case exhibition;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a value of this type based on a string.
|
* Returns a value of this type based on a string.
|
||||||
@ -26,6 +28,8 @@ enum MDCustomReportTarget implements MDValueEnumInterface, JsonSerializable {
|
|||||||
return match($input) {
|
return match($input) {
|
||||||
'object_single' => self::object_single,
|
'object_single' => self::object_single,
|
||||||
'object_list' => self::object_list,
|
'object_list' => self::object_list,
|
||||||
|
'loan' => self::loan,
|
||||||
|
'exhibition' => self::exhibition,
|
||||||
default => throw new MDpageParameterNotFromListException("Unknown custom report target: " . $input),
|
default => throw new MDpageParameterNotFromListException("Unknown custom report target: " . $input),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user