WellCommerce\Bundle\CurrencyBundle\Repository\CurrencyRepositoryInterface::getCurrenciesToSelect PHP Метод

getCurrenciesToSelect() публичный Метод

Returns an array of currencies fetched from intl component
public getCurrenciesToSelect ( ) : mixed
Результат mixed
    public function getCurrenciesToSelect();

Usage Example

 /**
  * {@inheritdoc}
  */
 public function buildForm(FormInterface $form)
 {
     $requiredData = $form->addChild($this->getElement('nested_fieldset', ['name' => 'required_data', 'label' => $this->trans('common.fieldset.general')]));
     $requiredData->addChild($this->getElement('select', ['name' => 'code', 'label' => $this->trans('currency.label.code'), 'options' => $this->repository->getCurrenciesToSelect()]));
     $form->addFilter($this->getFilter('no_code'));
     $form->addFilter($this->getFilter('trim'));
     $form->addFilter($this->getFilter('secure'));
 }
All Usage Examples Of WellCommerce\Bundle\CurrencyBundle\Repository\CurrencyRepositoryInterface::getCurrenciesToSelect
CurrencyRepositoryInterface