public function AddCurrency::__construct in Currency 8.3
Constructs a new instance.
Parameters
\Drupal\Core\Entity\EntityFormBuilderInterface $entity_form_builder: The entity form builder.
\Drupal\Core\Entity\EntityStorageInterface $currency_storage: The currency storage.
File
- src/
Controller/ AddCurrency.php, line 31
Class
- AddCurrency
- Handles the "add currency" route.
Namespace
Drupal\currency\ControllerCode
public function __construct(EntityFormBuilderInterface $entity_form_builder, EntityStorageInterface $currency_storage) {
$this->currencyStorage = $currency_storage;
$this->entityFormBuilder = $entity_form_builder;
}