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

ExcludeControllers::_construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 5
nc 1
nop 0
dl 0
loc 10
rs 10
c 0
b 0
f 0
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 ExcludeControllers extends AbstractFieldArray
18
{
19
    /**
20
     * @return void
21
     */
22
    protected function _construct()
23
    {
24
        $this->addColumn('controller', [
25
            'label' => __('Expression'),
26
        ]);
27
28
        $this->_addAfter = false;
29
        $this->_addButtonLabel = __('Add');
30
31
        parent::_construct();
32
    }
33
}
34