GridFieldBasicContentReport   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 15
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getRowAttributes() 0 6 1
1
<?php
2
3
namespace SilverStripe\SiteWideContentReport\Form;
4
5
use SilverStripe\Forms\GridField\GridField;
6
use SilverStripe\ORM\DataObject;
7
8
/**
9
 * Class GridFieldBasicContentReport
10
 * @package SilverStripe\SiteWideContentReport\Form
11
 */
12
class GridFieldBasicContentReport extends GridField
13
{
14
    /**
15
     * @param int        $total
16
     * @param int        $index
17
     * @param DataObject $record
18
     *
19
     * @return array
20
     */
21
    protected function getRowAttributes($total, $index, $record)
22
    {
23
        $attributes = parent::getRowAttributes($total, $index, $record);
24
        $this->extend('updateRowAttributes', $total, $index, $record, $attributes);
25
26
        return $attributes;
27
    }
28
}
29