Contao\Model\Collection::fetchAll PHP Method

fetchAll() public method

Fetch all columns of every row
public fetchAll ( ) : array
return array An array with all rows and columns
    public function fetchAll()
    {
        $this->reset();
        $return = array();
        while ($this->next()) {
            $return[] = $this->row();
        }
        return $return;
    }