public function RecipientHandlerManager::getOptions in Simplenews 8
Same name and namespace in other branches
- 8.2 src/RecipientHandler/RecipientHandlerManager.php \Drupal\simplenews\RecipientHandler\RecipientHandlerManager::getOptions()
- 3.x src/RecipientHandler/RecipientHandlerManager.php \Drupal\simplenews\RecipientHandler\RecipientHandlerManager::getOptions()
Returns the array of recipient handler labels. @todo documentation
File
- src/
RecipientHandler/ RecipientHandlerManager.php, line 44
Class
- RecipientHandlerManager
- Provides an recipient handler plugin manager.
Namespace
Drupal\simplenews\RecipientHandlerCode
public function getOptions() {
$handlers = $this
->getDefinitions();
$allowed_values = array();
foreach ($handlers as $handler => $settings) {
$allowed_values[$handler] = Xss::filter($settings['title']);
}
return $allowed_values;
}