Source of file ZenFieldGroup.php
Size: 0,528 Bytes - Last Modified: 2021-12-23T10:56:40+00:00
/var/www/docs.ssmods.com/process/src/code/ZenFieldGroup.php
123456789101112131415161718192021222324252627282930313233343536 | <?php /** * Defines a FieldGroup for usage with ZenFields * * @author Uncle Cheese <unclecheese@leftandmain.com> * @package ZenFields */ class ZenFieldGroup extends ZenFields { /** * Gets the parent FieldList * * @return FieldList */ public function end() { return $this->FieldList; } /** * Adds a field to the FieldGroup * * @param FormField The field to add * @return FieldGroup */ public function add(FormField $field) { $this->owner->push($field); return $this->owner; } } |