src/services/SitemapService.php
private function _generateLoop ($handle, $data, $sitemapData)
	{
		if (!array_key_exists($handle, $sitemapData))
			return;

		foreach ($data as $item)
			if (array_key_exists($item['id'], $sitemapData[$handle]))
				if ($sitemapData[$handle][$item['id']]->enabled)
					$this->_generateIndex($handle, $item['id']);
	}
private function _generateLoop ($handle, $data, $sitemapData)
	{
		if (!array_key_exists($handle, $sitemapData))
			return;

		foreach ($data as $item)
			if (array_key_exists($item['id'], $sitemapData[$handle]))
				if ($sitemapData[$handle][$item['id']]->enabled)
					$this->_generateIndex($handle, $item['id']);
	}
@param $handle
@param $data
@param $sitemapData

@throws \yii\base\Exception