src/Component/ColumnSortingControl.php
protected function getDirection()
    {
        if (!$this->inputOption->hasValue()) {
            return null;
        }
        list($columnName, $direction) = explode(static::DELIMITER, $this->inputOption->getValue());
        if ($columnName !== $this->columnId) {
            return null;
        }
        return $direction;
    }
protected function getDirection()
    {
        if (!$this->inputOption->hasValue()) {
            return null;
        }
        list($columnName, $direction) = explode(static::DELIMITER, $this->inputOption->getValue());
        if ($columnName !== $this->columnId) {
            return null;
        }
        return $direction;
    }
protected function getDirection ( ) { if ( ! $ this -> inputOption -> hasValue ( ) ) { return null ; } list ( $ columnName , $ direction ) = explode ( static :: DELIMITER , $ this -> inputOption -> getValue ( ) ) ; if ( $ columnName !== $ this -> columnId ) { return null ; } return $ direction ; }
Returns sorting direction for attached column if specified in input.

@return string|null 'asc', 'desc' or null
Returns sorting direction for attached column if specified in input .