Form::Tiny::Hook - a representation of a hook
# in your form class # the following will be coerced into Form::Tiny::Filter form_hook before_validation => $coderef;
This is a simple class which stores a hook type together with a code reference which will be fired on that stage. See "Hooks" in Form::Tiny::Manual for details.
A hook type. Currently available types are: reformat before_mangle before_validate after_validate cleanup after_error.
reformat before_mangle before_validate after_validate cleanup after_error
Required.
A code reference accepting varying arguments depending on hook type.
A boolean - whether the hook should be inherited to child forms. True by default.
Given a hook object, this method will return a boolean value which indicates whether the hook is meant to be modifying the passed in value. If false, we should discard the return value of that hook's code reference.
To install Form::Tiny, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Form::Tiny
CPAN shell
perl -MCPAN -e shell install Form::Tiny
For more information on module installation, please visit the detailed CPAN module installation guide.