mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #2692 from sheadawson/formfieldhook
MINOR added onBeforeRender extension hook to FormField
This commit is contained in:
commit
eaa390b1de
@ -583,7 +583,7 @@ class FormField extends RequestHandler {
|
||||
*/
|
||||
public function Field($properties = array()) {
|
||||
$obj = ($properties) ? $this->customise($properties) : $this;
|
||||
|
||||
$this->extend('onBeforeRender', $this);
|
||||
return $obj->renderWith($this->getTemplates());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user