ContentReviewLeftAndMainExtension   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
lcom 1
cbo 1
dl 0
loc 14
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A updateClientConfig() 0 6 1
1
<?php
2
3
namespace SilverStripe\ContentReview\Extensions;
4
5
use SilverStripe\Admin\LeftAndMainExtension;
6
7
class ContentReviewLeftAndMainExtension extends LeftAndMainExtension
8
{
9
    /**
10
     * Append content review schema configuration
11
     *
12
     * @param array &$clientConfig
13
     */
14
    public function updateClientConfig(&$clientConfig)
15
    {
16
        $clientConfig['form']['ReviewContentForm'] = [
17
            'schemaUrl' => $this->owner->Link('schema/ReviewContentForm')
18
        ];
19
    }
20
}
21