Completed
Branch develop (17e8cf)
by Nate
10:01
created

UserList::init()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 0
cts 6
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
/**
4
 * @copyright  Copyright (c) Flipbox Digital Limited
5
 * @license    https://www.flipboxfactory.com/software/element-lists/license
6
 * @link       https://www.flipboxfactory.com/software/element-lists/
7
 */
8
9
namespace flipbox\craft\element\lists\fields;
10
11
use craft\fields\Users;
12
13
/**
14
 * @author Flipbox Factory <[email protected]>
15
 * @since 1.0.0
16
 */
17
class UserList extends Users implements ElementListInterface
18
{
19
    use ElementListTrait;
20
21
    /**
22
     * @inheritdoc
23
     */
24
    public function init()
25
    {
26
        parent::init();
27
        $this->inputTemplate = 'element-lists/_components/fieldtypes/ElementSource';
28
        $this->inputJsClass = 'Craft.NestedElementIndexSelectInput';
29
    }
30
}
31