Home / Magento / Magento 2 get custom category attribute

Magento 2 get custom category attribute

public function getCategoryCollection()
    {
        $collection = $this->_categoryCollection->create()
            ->addAttributeToSelect('*')
            ->addAttributeToFilter('is_home_category', '1');

        return $collection;
    }

About admin

Check Also

On the road again – heading off to Imagine!

Every year, Imagine is aiming for the new heights. I mean, 150+ speakers with top …

Leave a Reply

Your email address will not be published. Required fields are marked *