API Add FieldList::getContainerField

This commit is contained in:
Maxime Rainville 2018-10-05 16:56:30 +13:00
parent bdb53979aa
commit 5276b6cbb1

View File

@ -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)