public function build()
    {
        $config = array_merge([
            'type' => $this->type,
        ], $this->getConfig());

        foreach ($config as $key => $value) {
            if ($value instanceof Builder) {
                $config[$key] = $value->build();
            }
        }

        return $config;
    }
public function build()
    {
        $config = array_merge([
            'type' => $this->type,
        ], $this->getConfig());

        foreach ($config as $key => $value) {
            if ($value instanceof Builder) {
                $config[$key] = $value->build();
            }
        }

        return $config;
    }
public function build ( ) { $ config = array_merge ( [ 'type' => $ this -> type , ] , $ this -> getConfig ( ) ) ; foreach ( $ config as $ key => $ value ) { if ( $ value instanceof Builder ) { $ config [ $ key ] = $ value -> build ( ) ; } } return $ config ; }
Build the field configuration array
@return array Field configuration array
Build the field configuration array