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