Devise\Pages\Interpreter\DvsPageData::buildNode PHP Method

buildNode() protected method

Build a node
protected buildNode ( array $node ) : array
$node array
return array
    protected function buildNode($node)
    {
        $binding = $node['bindingType'];
        $built = ['cid' => $node['cid'], 'key' => $node['id'], 'binding' => $binding, 'human_name' => $node['humanName'], 'position' => ['top' => 0, 'left' => 0, 'side' => 'left'], 'data' => $node['data']];
        if ($binding === 'model' || $binding === 'attribute') {
            $built['model'] = $node['model'];
        }
        return $built;
    }