public function getListModels($type = 'core')
{
$db = ConnectionManager::getDataSource('default');
$listSources = $db->listSources();
if (!$listSources) {
return array();
}
$tableList = getTableList();
$sources = array();
foreach ($listSources as $source) {
if (in_array($source, $tableList[$type])) {
$sources[] = $source;
}
}
return $sources;
}