mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
added in a getter
This commit is contained in:
parent
1c9f9551b6
commit
da67f9109d
@ -851,6 +851,15 @@ class FormField extends RequestHandler {
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the FieldList that contains this field.
|
||||
*
|
||||
* @return FieldList
|
||||
*/
|
||||
public function getContainerFieldList() {
|
||||
return $this->containerFieldList;
|
||||
}
|
||||
|
||||
public function rootFieldList() {
|
||||
if(is_object($this->containerFieldList)) return $this->containerFieldList->rootFieldList();
|
||||
else user_error("rootFieldList() called on $this->class object without a containerFieldList", E_USER_ERROR);
|
||||
|
Loading…
Reference in New Issue
Block a user