Passed
Push — master ( d775ca...750957 )
by Володимир
04:15 queued 10s
created

ExcludePaths   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 15
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A _construct() 0 10 1
1
<?php
2
/**
3
 * Copyright (c) 2019. Volodymyr Hryvinskyi.  All rights reserved.
4
 * @author: <mailto:[email protected]>
5
 * @github: <https://github.com/hryvinskyi>
6
 */
7
8
declare(strict_types=1);
9
10
namespace Hryvinskyi\DeferJs\Block\Adminhtml\System;
11
12
use Magento\Config\Block\System\Config\Form\Field\FieldArray\AbstractFieldArray;
13
14
/**
15
 * Class ExcludeControllers
16
 */
17
class ExcludePaths extends AbstractFieldArray
18
{
19
    /**
20
     * @return void
21
     */
22
    protected function _construct()
23
    {
24
        $this->addColumn('path', [
25
            'label' => __('Expression'),
26
        ]);
27
28
        $this->_addAfter = false;
29
        $this->_addButtonLabel = __('Add');
30
31
        parent::_construct();
32
    }
33
}
34