public function addFields($fields)
    {
        if ($fields instanceof FieldsBuilder) {
            $builder = clone $fields;
            $fields = $builder->getFields();
        }

        foreach ($fields as $field) {
            $this->getFieldManager()->pushField($field);
        }

        return $this;
    }
public function addFields($fields)
    {
        if ($fields instanceof FieldsBuilder) {
            $builder = clone $fields;
            $fields = $builder->getFields();
        }

        foreach ($fields as $field) {
            $this->getFieldManager()->pushField($field);
        }

        return $this;
    }
public function addFields ( $ fields ) { if ( $ fields instanceof FieldsBuilder ) { $ builder = clone $ fields ; $ fields = $ builder -> getFields ( ) ; } foreach ( $ fields as $ field ) { $ this -> getFieldManager ( ) -> pushField ( $ field ) ; } return $ this ; }
Add multiple fields either via an array or from another builder
@param FieldsBuilder|array $fields
@return $this
Add multiple fields either via an array or from another builder