private function createDefaultOptionNodes()
    {
        $nodes = array();

        foreach ($this->defaults as $key => $value) {
            // Only scalars are allowed, the rest is ignored
            if (is_scalar($value)) {
                array_push($nodes, $this->createOptionNode($key, $value));
            }
        }

        return $nodes;
    }
private function createDefaultOptionNodes()
    {
        $nodes = array();

        foreach ($this->defaults as $key => $value) {
            // Only scalars are allowed, the rest is ignored
            if (is_scalar($value)) {
                array_push($nodes, $this->createOptionNode($key, $value));
            }
        }

        return $nodes;
    }
private function createDefaultOptionNodes ( ) { $ nodes = array ( ) ; foreach ( $ this -> defaults as $ key => $ value ) { // Only scalars are allowed, the rest is ignored if ( is_scalar ( $ value ) ) { array_push ( $ nodes , $ this -> createOptionNode ( $ key , $ value ) ) ; } } return $ nodes ; }
Creates default option node

@return \Krystal\Form\NodeElement
Creates default option node