Elcodi\Admin\CurrencyBundle\Controller\CurrencyController::enableCurrencyAction PHP Method

enableCurrencyAction() public method

Enable entity
public enableCurrencyAction ( Elcodi\Component\Currency\Entity\Interfaces\CurrencyInterface $currency ) : array
$currency Elcodi\Component\Currency\Entity\Interfaces\CurrencyInterface The currency to enable
return array Result
    public function enableCurrencyAction(CurrencyInterface $currency)
    {
        $translator = $this->get('translator');
        $this->enableEntity($currency);
        return ['message' => $translator->trans('admin.currency.saved.enabled')];
    }