/** * {@inheritDocs} * * @param UnitLoader $unitLoader Used to load sale Units * @param QueryBuilderFactory $queryBuilderFactory Required for sub-queries on the filter step */ public function __construct($name, $displayName, UnitLoader $unitLoader, QueryBuilderFactory $queryBuilderFactory) { parent::__construct($name, $displayName); $this->_unitLoader = $unitLoader; $this->_queryBuilderFactory = $queryBuilderFactory; }
/** * {@inheritDoc} * * Method calls `_setChoices()` to generate choices if they are not set */ public function getForm() { $this->_setChoices(); return parent::getForm(); }