1 | <?php |
||
3 | class DMSGridFieldEditButton extends GridFieldEditButton implements GridField_ColumnProvider |
||
4 | { |
||
5 | |||
6 | /** |
||
7 | * Overriding the parent method to change the template that the DMS edit button will be rendered with based on |
||
8 | * whether or not the user has edit permissions. |
||
9 | * |
||
10 | * @param GridField $gridField |
||
11 | * @param DataObject $record |
||
12 | * @param string $columnName |
||
13 | * |
||
14 | * @return string - the HTML for the column |
||
|
|||
15 | */ |
||
16 | public function getColumnContent($gridField, $record, $columnName) |
||
26 | } |
||
27 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.