src/View.php
public function setSource(array $data, $fields = null)
    {
        $this->setModel(new \atk4\data\Model(new \atk4\data\Persistence_Static($data)), $fields);
    }
public function setSource(array $data, $fields = null)
    {
        $this->setModel(new \atk4\data\Model(new \atk4\data\Persistence_Static($data)), $fields);
    }
public function setSource ( array $ data , $ fields = null ) { $ this -> setModel ( new \ atk4 \ data \ Model ( new \ atk4 \ data \ Persistence_Static ( $ data ) ) , $ fields ) ; }
Sets source of the View.

@param array $data   Array of data
@param array $fields Limit model to particular fields

@return \atk4\data\Model
Sets source of the View .