yii\data\Sort::hasAttribute PHP Method

hasAttribute() public method

Returns a value indicating whether the sort definition supports sorting by the named attribute.
public hasAttribute ( string $name ) : boolean
$name string the attribute name
return boolean whether the sort definition supports sorting by the named attribute.
    public function hasAttribute($name)
    {
        return isset($this->attributes[$name]);
    }