Test Failed
Push — master ( ff5680...8a5127 )
by Gerhard
30:14 queued 19:34
created

HeadLineType::getBlockPrefix()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: gseidel
5
 * Date: 26.01.18
6
 * Time: 16:34
7
 */
8
9
namespace Enhavo\Bundle\FormBundle\Form\Type;
10
11
use Symfony\Component\Form\AbstractType;
12
use Symfony\Component\OptionsResolver\OptionsResolver;
13
14
class HeadLineType extends AbstractType
15
{
16 2
    public function configureOptions(OptionsResolver $resolver)
17
    {
18 2
        $resolver->setDefaults([
19 2
            'label' => 'form.label.title',
20
            'translation_domain' => 'EnhavoAppBundle',
21
            'tag_choices' => [
22
                'h1' => 'h1',
23
                'h2' => 'h2',
24
                'h3' => 'h3',
25
                'h4' => 'h4',
26
                'h5' => 'h5',
27
                'h6' => 'h6'
28
            ]
29
        ]);
30 2
    }
31
32 2
    public function getParent()
33
    {
34 2
        return HtmlTagType::class;
35
    }
36
}
37