I have tried creating my static tried copying FAQAccess and StateAction, rename the use object to the filename I created. I just copied then change the use module. I'm guessing I need further setup or register the static stats but it is immediately found when I created new stats, I'm guessing the objects should have been passed from somewhere? I never got a parameter in stats after choosing them? Are there any more detailed information here or documentations on stats?
I mean something like the one below. The first image is from StateAction, the second is one I copied the pattern from StateAction


Code: Select all
sub GetObjectBehaviours {
my ( $Self, %Param ) = @_;
my %Behaviours = (
ProvidesDashboardWidget => 1,
);
return %Behaviours;
}