protected function getUseNameInSearchAttribute()
    {
        $this->useNameInSearchAttribute = $this->eavConfig
            ->getAttribute(\Magento\Catalog\Model\Category::ENTITY, 'use_name_in_product_search');

        return $this->useNameInSearchAttribute;
    }
protected function getUseNameInSearchAttribute()
    {
        $this->useNameInSearchAttribute = $this->eavConfig
            ->getAttribute(\Magento\Catalog\Model\Category::ENTITY, 'use_name_in_product_search');

        return $this->useNameInSearchAttribute;
    }
protected function getUseNameInSearchAttribute ( ) { $ this -> useNameInSearchAttribute = $ this -> eavConfig -> getAttribute ( \ Magento \ Catalog \ Model \ Category :: ENTITY , 'use_name_in_product_search' ) ; return $ this -> useNameInSearchAttribute ; }
Returns category "use name in product search" attribute

@return \Magento\Eav\Model\Entity\Attribute\AbstractAttribute
Returns category use name in product search attribute