MuForm/Field/Hidden.pm

filter: Statementstmt 100% 11 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 0.0% 0 / 2 totaltotal 87.5% 14 / 16 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
build_input_type
1.0
base_render_args
1.0
CRAP 1.0
« MuForm/Field/Reset.pm ↑ Summary MuForm/Field/Submit.pm »
1 package Data::MuForm::Field::Hidden;
2 # ABSTRACT: hidden field
3  
4 3 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 3 extends 'Data::MuForm::Field::Text';
6  
7 1 ▶sub build_input_type { 'hidden' }
Subroutine build_input_type: called CC=1 SCAR=0.0
Pod undocumented
8  
9  
10 sub base_render_args {
11 1 ▶ my $self = shift;
Subroutine base_render_args: called CC=1 SCAR=0.0
Pod undocumented
12 1 my $args = $self->next::method(@_);
13 1 $args->{layout_type} = 'element';
14 1 $args->{wrapper} = 'none';
15 1 return $args;
16 }
17  
18 3 1;
19  
20 __END__
21  
22 =pod
23  
24 =encoding UTF-8
25  
26 =head1 NAME
27  
28 Data::MuForm::Field::Hidden - hidden field
29  
30 =head1 VERSION
31  
32 version 0.04
33  
34 =head1 DESCRIPTION
35  
36 This is a 'convenience' text field that uses the 'hidden' type.
37  
38 =head1 AUTHOR
39  
40 Gerda Shank
41  
42 =head1 COPYRIGHT AND LICENSE
43  
44 This software is copyright (c) 2017 by Gerda Shank.
45  
46 This is free software; you can redistribute it and/or modify it under
47 the same terms as the Perl 5 programming language system itself.
48  
49 =cut
« MuForm/Field/Reset.pm ↑ Summary MuForm/Field/Submit.pm »