FIX allow children to be accessed via template

This commit is contained in:
Will Morgan 2013-05-17 10:29:21 +02:00
parent 7ab175374b
commit 372890703c

View File

@ -145,6 +145,14 @@ class ConfirmedPasswordField extends FormField {
return $content; return $content;
} }
/**
* Returns the children of this field for use in templating.
* @return FieldList
*/
public function getChildren() {
return $this->children;
}
/** /**
* Can be empty is a flag that turns on/off empty field checking. * Can be empty is a flag that turns on/off empty field checking.
* For example, set this to false (the default) when creating a user account, * For example, set this to false (the default) when creating a user account,