mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
API Add FieldList::getContainerField
This commit is contained in:
parent
bdb53979aa
commit
5276b6cbb1
@ -31,7 +31,7 @@ class FieldList extends ArrayList
|
||||
* If this fieldlist is owned by a parent field (e.g. CompositeField)
|
||||
* this is the parent field.
|
||||
*
|
||||
* @var FieldList|FormField
|
||||
* @var CompositeField
|
||||
*/
|
||||
protected $containerField;
|
||||
|
||||
@ -790,7 +790,15 @@ class FieldList extends ArrayList
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $field
|
||||
* @return CompositeField|null
|
||||
*/
|
||||
public function getContainerField()
|
||||
{
|
||||
return $this->containerField;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param CompositeField|null $field
|
||||
* @return $this
|
||||
*/
|
||||
public function setContainerField($field)
|
||||
|
Loading…
Reference in New Issue
Block a user