You are here

public function RecipientHandlerManager::getOptions in Simplenews 8

Same name and namespace in other branches
  1. 8.2 src/RecipientHandler/RecipientHandlerManager.php \Drupal\simplenews\RecipientHandler\RecipientHandlerManager::getOptions()
  2. 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\RecipientHandler

Code

public function getOptions() {
  $handlers = $this
    ->getDefinitions();
  $allowed_values = array();
  foreach ($handlers as $handler => $settings) {
    $allowed_values[$handler] = Xss::filter($settings['title']);
  }
  return $allowed_values;
}