GridFieldBasicContentReport::getRowAttributes()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 3
dl 0
loc 6
rs 10
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