code: public static function getAllProvider($relatedRecords = [], $sort = [], $limit = null)
      {
          $query = self::find()->with($relatedRecords)->orderBy($sort);
          return self::convertToProvider($query, [], $limit);
      }
docs: Get all model rows with the
  @author Adeyemi Olaoye <yemi@cottacush.com>
  @author Olawale Lawal <wale@cottacush.com>
  @param array $relatedRecords
  @param array|null $sort
  @param null $limit
  @return ActiveDataProvider