| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | public function getConfiguration(): array |
||
| 32 | { |
||
| 33 | $providers = $this->mfaProviderRegistry->getProviders(); |
||
| 34 | $configuration = []; |
||
| 35 | foreach ($providers as $identifier => $provider) { |
||
| 36 | $configuration[$identifier] = [ |
||
| 37 | 'title' => $this->getLanguageService()->sL($provider->getTitle()), |
||
| 38 | 'description' => $this->getLanguageService()->sL($provider->getDescription()), |
||
| 39 | 'isDefaultAllowed' => $provider->isDefaultProviderAllowed() |
||
| 40 | ]; |
||
| 41 | } |
||
| 42 | return $configuration; |
||
| 43 | } |
||
| 45 |