<virtualType name="categoryFilterList" type="Magento\Catalog\Model\Layer\FilterList">
<arguments>
<argument name="filters" xsi:type="array">
<item name="attribute" xsi:type="string">Magento\CatalogSearch\Model\Layer\Filter\Attribute</item>
<item name="price" xsi:type="string">Magento\CatalogSearch\Model\Layer\Filter\Price</item>
<item name="decimal" xsi:type="string">Magento\CatalogSearch\Model\Layer\Filter\Decimal</item>
<item name="category" xsi:type="string">Magento\CatalogSearch\Model\Layer\Filter\Category</item>
// i want to pass the my own class like below
<item name="customFilter" xsi:type="string">Vendor\CustomFilter\Model\Layer\Filter\CustomFilter</item>
</argument>
</arguments>
</virtualType>
Added my module di.xml file like below but it not working.
<virtualType name="categoryFilterList" type="Magento\Catalog\Model\Layer\FilterList">
<arguments>
<argument name="filters" xsi:type="array">
<item name="customfilter" xsi:type="string">Vendor\CustomFilter\Model\Layer\Filter\CustomFilter</item>
</argument>
</arguments>
</virtualType>
Can you advice me.