Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 11 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
34 | 1 | public function getCMSFields() |
|
35 | { |
||
36 | 1 | $fields = parent::getCMSFields(); |
|
37 | |||
38 | 1 | $fields->dataFieldByName('Title') |
|
39 | 1 | ->setTitle('Name'); |
|
40 | |||
41 | 1 | $fields->replaceField('Country', CountryDropdownField::create('Country')); |
|
42 | |||
43 | 1 | $fields->dataFieldByName('Website') |
|
44 | 1 | ->setAttribute('placeholder', 'http://'); |
|
45 | |||
46 | 1 | $fields->replaceField('Email', EmailField::create('Email')); |
|
47 | |||
48 | 1 | $fields->dataFieldByName('Suburb') |
|
49 | 1 | ->setTitle('City'); |
|
50 | |||
51 | 1 | return $fields; |
|
52 | } |
||
53 | } |