yii\data\DataProviderInterface::prepare PHP Method

prepare() public method

This method will prepare the data models and keys that can be retrieved via DataProviderInterface::getModels and DataProviderInterface::getKeys. This method will be implicitly called by DataProviderInterface::getModels and DataProviderInterface::getKeys if it has not been called before.
public prepare ( boolean $forcePrepare = false )
$forcePrepare boolean whether to force data preparation even if it has been done before.
    public function prepare($forcePrepare = false);