/** * Returns the configuration attribute definitions of the provider to generate a list of available fields and * rules for the value of each field in the administration interface. * * @return array List of attribute definitions implementing \Aimeos\MW\Common\Critera\Attribute\Iface */ public function getConfigBE() { $list = parent::getConfigBE(); foreach ($this->beConfig as $key => $config) { $list[$key] = new \Aimeos\MW\Criteria\Attribute\Standard($config); } return $list; }
/** * Returns the configuration attribute definitions of the provider to generate a list of available fields and * rules for the value of each field in the administration interface. * * @return array List of attribute definitions implementing \Aimeos\MW\Common\Critera\Attribute\Iface */ public function getConfigBE() { $list = parent::getConfigBE(); $prefix = $this->getConfigPrefix(); $config = $this->beConfig; if ($prefix !== 'omnipay') { unset($config['type'], $config['onsite']); } foreach ($config as $key => $config) { $config['code'] = $prefix . '.' . $config['code']; $list[$prefix . '.' . $key] = new \Aimeos\MW\Criteria\Attribute\Standard($config); } return $list; }