WorkflowType::configureOptions()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 11
rs 9.4285
cc 1
eloc 6
nc 1
nop 1
1
<?php
2
/*
3
 * This file is part of cwdFancyGridBundle
4
 *
5
 * (c)2017 cwd.at GmbH <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
declare(strict_types=1);
11
namespace Cwd\FancyGridBundle\Column;
12
13
use Symfony\Component\OptionsResolver\OptionsResolver;
14
15
/**
16
 * Class WorkflowType.
17
 */
18
class WorkflowType extends ActionType
19
{
20
    /**
21
     * {@inheritdoc}
22
     */
23
    public function configureOptions(OptionsResolver $resolver)
24
    {
25
        parent::configureOptions($resolver);
26
27
        $resolver->setDefaults([
28
            'transition' => [],
29
            'template' => '@CwdFancyGrid/Column/workflow_actions.html.twig',
30
        ]);
31
32
        $resolver->setAllowedTypes('transition', 'array');
33
    }
34
}
35