/**
  *  @return void
  */
 protected function assignElectronicAddressOptions()
 {
     $electronicAddress = new ElectronicAddress();
     $electronicAddressTypes = array();
     foreach ($electronicAddress->getAvailableElectronicAddressTypes() as $type) {
         $electronicAddressTypes[$type] = $type;
     }
     $electronicAddressUsageTypes = array();
     foreach ($electronicAddress->getAvailableUsageTypes() as $type) {
         $electronicAddressUsageTypes[$type] = $type;
     }
     array_unshift($electronicAddressUsageTypes, '');
     $this->view->assignMultiple(array('electronicAddressTypes' => $electronicAddressTypes, 'electronicAddressUsageTypes' => $electronicAddressUsageTypes));
 }
 /**
  *  @return void
  */
 protected function assignElectronicAddressOptions()
 {
     $electronicAddress = new ElectronicAddress();
     $electronicAddressTypes = array();
     foreach ($electronicAddress->getAvailableElectronicAddressTypes() as $type) {
         $electronicAddressTypes[$type] = $type;
     }
     $electronicAddressUsageTypes = array();
     $translationHelper = new TranslationHelper();
     foreach ($electronicAddress->getAvailableUsageTypes() as $type) {
         $electronicAddressUsageTypes[$type] = $translationHelper->translate('users.electronicAddress.usage.type.' . $type, $type, [], 'Modules', 'TYPO3.Neos');
     }
     array_unshift($electronicAddressUsageTypes, '');
     $this->view->assignMultiple(array('electronicAddressTypes' => $electronicAddressTypes, 'electronicAddressUsageTypes' => $electronicAddressUsageTypes));
 }