yii\elasticsearch\ActiveQuery::all PHP Method

all() public method

Executes query and returns all results as an array.
public all ( Connection $db = null ) : array
$db Connection the DB connection used to create the DB command. If null, the DB connection returned by [[modelClass]] will be used.
return array the query results. If the query results in nothing, an empty array will be returned.
    public function all($db = null)
    {
        return parent::all($db);
    }