GridFieldDetailForm_ItemRequest->getRecord()

This commit is contained in:
Ingo Schommer 2014-05-07 23:35:52 +12:00
parent ca1f9a58f4
commit 802b46bd0a

View File

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