Merge pull request #3111 from silverstripe-iterators/pulls/gridfield-getrecord

GridFieldDetailForm_ItemRequest->getRecord()
This commit is contained in:
Damian Mooyman 2014-05-08 09:13:36 +12:00
commit 0305eb97e7

View File

@ -193,6 +193,7 @@ class GridFieldDetailForm implements GridField_URLHandler {
public function getItemEditFormCallback() {
return $this->itemEditFormCallback;
}
}
/**
@ -627,6 +628,13 @@ class GridFieldDetailForm_ItemRequest extends RequestHandler {
return $this->gridField;
}
/**
* @return DataObject
*/
public function getRecord() {
return $this->record;
}
/**
* CMS-specific functionality: Passes through navigation breadcrumbs
* to the template, and includes the currently edited record (if any).