private function getMaxPosition()
    {
        $fullTableName = $this->getResource()->getTable(self::CATEGORY_FILTER_CONFIG_TABLE);
        $categoryPositionSelect = $this->getConnection()->select()
            ->from($fullTableName, [])
            ->columns(['category_max_position' => new \Zend_Db_Expr('MAX(position)')])
            ->where($this->getConnection()->quoteInto('entity_id = ?', (int) $this->category->getId()));

        return (int) $this->getConnection()->fetchOne($categoryPositionSelect);
    }
private function getMaxPosition()
    {
        $fullTableName = $this->getResource()->getTable(self::CATEGORY_FILTER_CONFIG_TABLE);
        $categoryPositionSelect = $this->getConnection()->select()
            ->from($fullTableName, [])
            ->columns(['category_max_position' => new \Zend_Db_Expr('MAX(position)')])
            ->where($this->getConnection()->quoteInto('entity_id = ?', (int) $this->category->getId()));

        return (int) $this->getConnection()->fetchOne($categoryPositionSelect);
    }
private function getMaxPosition ( ) { $ fullTableName = $ this -> getResource ( ) -> getTable ( self :: CATEGORY_FILTER_CONFIG_TABLE ) ; $ categoryPositionSelect = $ this -> getConnection ( ) -> select ( ) -> from ( $ fullTableName , [ ] ) -> columns ( [ 'category_max_position' => new \ Zend_Db_Expr ( 'MAX(position)' ) ] ) -> where ( $ this -> getConnection ( ) -> quoteInto ( 'entity_id = ?' , ( int ) $ this -> category -> getId ( ) ) ) ; return ( int ) $ this -> getConnection ( ) -> fetchOne ( $ categoryPositionSelect ) ; }
Return the max attribute position configured for the current category.

@return int
Return the max attribute position configured for the current category .