ChildFieldManager
interface ChildFieldManager (View source)
Interface that allows non-CompositeField implementations to surface their child fields for handling requests and getting/setting data.
Methods
Returns true if this field manages a child field with the given name.
Returns a named field which is managed by this parent field.
Returns a flat iterable of all fields managed by this parent field.
Details
bool
isManagedField(string $fieldName)
Returns true if this field manages a child field with the given name.
If this form field manages fields which may handle actions, and this is not a subclass of CompositeField, this allows FormRequestHandler to find child fields to handle requests.
If this method returns true the field must be accessible via getManagedFieldByName() and be returned in getManagedFields().
FormField|null
getManagedFieldByName(string $fieldName)
Returns a named field which is managed by this parent field.
iterable
getManagedFields()
Returns a flat iterable of all fields managed by this parent field.