code: public static function familiarObjectsProvider($model, $state)
      {
          $queryModel = new $model();
          $query = $model::find();
          $query->with(['familiarity']);
  
          return new ActiveDataProvider([
                  'query' => $query,
                  'pagination' => [
                  ],
                  'state' => $state,
                  'sort' => [
                      'defaultOrder' => array_merge(['familiarity.familiarity' => SORT_DESC, 'familiarity.last_accessed' => SORT_DESC], $queryModel->defaultOrder),
                      'attributes' => [
                          'familiarity' => [
                              'asc' => array_merge(['familiarity.familiarity' => SORT_ASC], $queryModel->defaultOrder),
                              'desc' => array_merge(['familiarity.familiarity' => SORT_DESC], $queryModel->defaultOrder),
                          ],
                          'last_accessed' => [
                              'asc' => array_merge(['familiarity.last_accessed' => SORT_ASC], $queryModel->defaultOrder),
                              'desc' => array_merge(['familiarity.last_accessed' => SORT_DESC], $queryModel->defaultOrder),
                          ],
                          '*',
                      ],
                  ],
              ]);
      }
docs: [[@doctodo method_description:familiarObjectsProvider]].
  
  @param [[@doctodo param_type:model]] $model [[@doctodo param_description:model]]
  @param [[@doctodo param_type:state]] $state [[@doctodo param_description:state]]
  
  @return [[@doctodo return_type:familiarObjectsProvider]] [[@doctodo return_description:familiarObjectsProvider]]