public function loadAttributesData(int $categoryId)
    {
        $binds = [':category_id' => $categoryId];

        $select = $this->getConnection()->select();
        $select->from($this->getMainTable())->where(sprintf("%s = :category_id", $this->getIdFieldName()));

        return $this->getConnection()->fetchAll($select, $binds);
    }
public function loadAttributesData(int $categoryId)
    {
        $binds = [':category_id' => $categoryId];

        $select = $this->getConnection()->select();
        $select->from($this->getMainTable())->where(sprintf("%s = :category_id", $this->getIdFieldName()));

        return $this->getConnection()->fetchAll($select, $binds);
    }
public function loadAttributesData ( int $ categoryId ) { $ binds = [ ':category_id' => $ categoryId ] ; $ select = $ this -> getConnection ( ) -> select ( ) ; $ select -> from ( $ this -> getMainTable ( ) ) -> where ( sprintf ( "%s = :category_id" , $ this -> getIdFieldName ( ) ) ) ; return $ this -> getConnection ( ) -> fetchAll ( $ select , $ binds ) ; }
Retrieve Layered Navigation Filters for a given category.

@param int $categoryId The category Id

@return array
@throws \Magento\Framework\Exception\LocalizedException
Retrieve Layered Navigation Filters for a given category .