Completed
Push — master ( a20c7b...d885ca )
by Nate
02:36
created

EntryList   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 3
dl 0
loc 23
ccs 0
cts 10
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A init() 0 7 1
A displayName() 0 4 1
1
<?php
2
3
/**
4
 * @copyright  Copyright (c) Flipbox Digital Limited
5
 * @license    https://github.com/flipboxfactory/craft-element-lists/LICENSE
6
 * @link       https://github.com/flipboxfactory/craft-element-lists/
7
 */
8
9
namespace flipbox\craft\element\lists\fields;
10
11
use craft\fields\Entries;
12
use flipbox\craft\element\lists\ElementList;
13
14
/**
15
 * @author Flipbox Factory <[email protected]>
16
 * @since 1.0.0
17
 */
18
class EntryList extends Entries
19
{
20
    use ElementListTrait;
21
22
    /**
23
     * @inheritdoc
24
     */
25
    public function init()
26
    {
27
        parent::init();
28
29
        $this->inputTemplate = 'element-lists/_components/fieldtypes/ElementSource';
30
        $this->inputJsClass = 'Craft.NestedElementIndexSelectInput';
31
    }
32
33
    /**
34
     * @inheritdoc
35
     */
36
    public static function displayName(): string
37
    {
38
        return ElementList::t('Entry List');
39
    }
40
}
41