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

AssetList::displayName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
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://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\Assets;
12
use flipbox\craft\element\lists\ElementList;
13
14
/**
15
 * @author Flipbox Factory <[email protected]>
16
 * @since 1.0.0
17
 */
18
class AssetList extends Assets
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('Asset List');
39
    }
40
}
41