yii\data\Sort::hasAttribute PHP Метод

hasAttribute() публичный Метод

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