/** * Retrieve the list of IdPs which are stored in the metadata. * * @return array An array with entityid => metadata mappings. */ protected function getIdPList() { $idpList = array(); foreach ($this->metadataSets as $metadataSet) { $newList = $this->metadata->getList($metadataSet); /* * Note that we merge the entities in reverse order. This ensures that it is the entity in the first * metadata set that "wins" if two metadata sets have the same entity. */ $idpList = array_merge($newList, $idpList); } return $idpList; }