yii\console\controllers\FixtureController::filterFixtures PHP Метод

filterFixtures() приватный Метод

If fixture is prefixed with "-", for example "-User", that means that fixture should not be loaded, if it is not prefixed it is considered as one to be loaded. Returns array: php [ 'apply' => [ 'User', ... ], 'except' => [ 'Custom', ... ], ]
private filterFixtures ( array $fixtures ) : array
$fixtures array
Результат array fixtures array with 'apply' and 'except' elements.
    private function filterFixtures($fixtures)
    {
        $filtered = ['apply' => [], 'except' => []];
        foreach ($fixtures as $fixture) {
            if (mb_strpos($fixture, '-') !== false) {
                $filtered['except'][] = str_replace('-', '', $fixture);
            } else {
                $filtered['apply'][] = $fixture;
            }
        }
        return $filtered;
    }