private function filterVendors($element)
    {
        $additionnalField = array('code' => 'hipay-process', 'type' => 'BOOLEAN', 'value' => 'true');

        if (isset($element['shop_additional_fields']) &&
            in_array($additionnalField, $element['shop_additional_fields'])
        ) {
            return true;
        } else {
            $this->logger->info(
                'Shop ' .
                $element['shop_id'] .
                ' will not be processed beacause additionnal field hipay-process set to false',
                array('miraklId' => $element['shop_id'], "action" => "Wallet creation")
            );

            $this->disableVendor($element);
        }
    }
private function filterVendors($element)
    {
        $additionnalField = array('code' => 'hipay-process', 'type' => 'BOOLEAN', 'value' => 'true');

        if (isset($element['shop_additional_fields']) &&
            in_array($additionnalField, $element['shop_additional_fields'])
        ) {
            return true;
        } else {
            $this->logger->info(
                'Shop ' .
                $element['shop_id'] .
                ' will not be processed beacause additionnal field hipay-process set to false',
                array('miraklId' => $element['shop_id'], "action" => "Wallet creation")
            );

            $this->disableVendor($element);
        }
    }
private function filterVendors ( $ element ) { $ additionnalField = array ( 'code' => 'hipay-process' , 'type' => 'BOOLEAN' , 'value' => 'true' ) ; if ( isset ( $ element [ 'shop_additional_fields' ] ) && in_array ( $ additionnalField , $ element [ 'shop_additional_fields' ] ) ) { return true ; } else { $ this -> logger -> info ( 'Shop ' . $ element [ 'shop_id' ] . ' will not be processed beacause additionnal field hipay-process set to false' , array ( 'miraklId' => $ element [ 'shop_id' ] , "action" => "Wallet creation" ) ) ; $ this -> disableVendor ( $ element ) ; } }
Filter function for Vendors array from Mirakl

@param $element
@return bool
Filter function for Vendors array from Mirakl