private function getEnabledMappingsByModuleName($moduleName)
{
$mappingsToAdd = array();
foreach ($this->mappings->listByModuleName($moduleName) as $repositoryPath => $mapping) {
if ($mapping->isEnabled()) {
// Remove duplicates
$mappingsToAdd[$mapping->getRepositoryPath()] = $mapping;
}
}
return $mappingsToAdd;
}